Package: bzr
Version: 0.7-2
Severity: normal
Tags: patch

I found this in dilinger's sarge packages, and he requested I file a bug:

--- /tmp/msgeditor.py 2006-01-23 10:33:07.000000000 +0100
+++ /usr/lib/python2.4/site-packages/bzrlib/msgeditor.py  2006-02-11 
12:57:00.952834268 +0100
@@ -78,6 +78,7 @@
     if ignoreline is None:
         ignoreline = "-- This line and the following will be ignored --"
         
+    msgfilename = None
     try:
         tmp_fileno, msgfilename = tempfile.mkstemp(prefix='bzr_log.', dir=u'.')
         msgfile = os.close(tmp_fileno)
@@ -124,8 +125,9 @@
             return "".join(msg)
     finally:
         # delete the msg file in any case
-        try: os.unlink(msgfilename)
-        except IOError: pass
+ if msgfilename is not None:
+            try: os.unlink(msgfilename)
+            except IOError: pass
 
 
 def make_commit_message_template(working_tree, specific_files):

-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (700, 'stable'), (600, 'testing'), (98, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages bzr depends on:
ii  python2.4                     2.4.2-2    An interactive high-level object-o
ii  python2.4-elementtree         1.2.6-3    Light-weight toolkit for XML proce
ii  python2.4-paramiko            1.5-1      make SSH2 connections with python

bzr recommends no packages.

-- no debconf information

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
 
the reason the mainstream is thought of as a stream
is because it is so shallow.

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to