Your message dated Sat, 31 Oct 2009 23:57:22 +0000
with message-id <[email protected]>
and subject line Bug#533758: fixed in python-central 0.6.12
has caused the Debian Bug report #533758,
regarding UnboundLocalError: local variable 'd' referenced before assignment, 
/usr/bin/pycentral line 357
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
533758: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533758
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-central
Version: 0.6.11
Severity: important
Tags: patch

Hello, this problem may be more severy than just important. An invocation of 
dh_pycentral
by dpkg-buildpackage and CDBS with debian/rules only being

#!/usr/bin/make -f
export DEB_PYTHON_SYSTEM=pycentral
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

led to

Traceback (most recent call last):                                              
                                                                       
  File "/usr/bin/pycentral", line 2096, in <module>                             
                                                                       
    main()                                                                      
                                                                       
  File "/usr/bin/pycentral", line 2090, in main                                 
                                                                       
    rv = action.run(global_options)                                             
                                                                       
  File "/usr/bin/pycentral", line 1947, in run                                  
                                                                       
    pkg.read_pyfiles()                                                          
                                                                       
  File "/usr/bin/pycentral", line 357, in read_pyfiles                          
                                                                       
    lines.append(os.path.join(d, name))                                         
                                                                       
UnboundLocalError: local variable 'd' referenced before assignment              
                                                                       

and me producing the following (apparently working but I don't know what I was 
truly doing)
patch

--- /tmp/orig   2009-06-20 12:14:06.501359540 +0200
+++ /usr/bin/pycentral  2009-06-20 12:14:30.209357195 +0200
@@ -353,8 +353,8 @@
                 if root != self.pkgdir:
                     d = root[len(self.pkgdir):]
                     lines.append(d)
-                for name in files:
-                    lines.append(os.path.join(d, name))
+                    for name in files:
+                        lines.append(os.path.join(d, name))
         else:
             config_file = '/usr/share/pyshared-data/%s' % self.name
             if self.pkgconfig:

so, the loop that depends on d was just rendered a part of the "if"
to get access to d.

Kind regards,

Steffen


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-central depends on:
ii  python                        2.5.4-2    An interactive high-level object-o

python-central recommends no packages.

python-central suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: python-central
Source-Version: 0.6.12

We believe that the bug you reported is fixed in the latest version of
python-central, which is due to be installed in the Debian FTP archive:

python-central_0.6.12.dsc
  to main/p/python-central/python-central_0.6.12.dsc
python-central_0.6.12.tar.gz
  to main/p/python-central/python-central_0.6.12.tar.gz
python-central_0.6.12_all.deb
  to main/p/python-central/python-central_0.6.12_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated python-central package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 29 Oct 2009 19:18:20 +0200
Source: python-central
Binary: python-central
Architecture: source all
Version: 0.6.12
Distribution: unstable
Urgency: low
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description: 
 python-central - register and build utility for Python packages
Closes: 533758
Changes: 
 python-central (0.6.12) unstable; urgency=low
 .
   * Fix pycentral debhelper failure, when there are files in the root
     directory of a package (uncommon cdbs test case). Closes: #533758.
   * Call py3_compilefiles when byte-compiling for python3.x.
Checksums-Sha1: 
 a9e1cfe704aae94354395da3247f845816935f27 823 python-central_0.6.12.dsc
 90a4ed2381a80c4569d2ee9f64b2e68ced07d25f 40337 python-central_0.6.12.tar.gz
 0503c37f9408347a6b894e4c9b40125e02bf70a0 44742 python-central_0.6.12_all.deb
Checksums-Sha256: 
 eadfde2c5405d2ec7f820af35eb6a2dd3575ae9789c39d4065272e52c2656a9c 823 
python-central_0.6.12.dsc
 f0e93307558f0aa5dddfbfa7bfee48e19ed46bfe58aae859390a5f748ce99e53 40337 
python-central_0.6.12.tar.gz
 9df09a9d234e158abfe719ed541257552666005ee27d760c02d9989aa41e4991 44742 
python-central_0.6.12_all.deb
Files: 
 a08a1703c3dbf5df3e8d96f65f880481 823 python standard python-central_0.6.12.dsc
 cb45ce11049e5d936c9bd50937e3477f 40337 python standard 
python-central_0.6.12.tar.gz
 dd406c978a4b5201d511453eb513f474 44742 python standard 
python-central_0.6.12_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkrp3/AACgkQStlRaw+TLJy0EgCgkHr2CQ/mGnNfn/dA/+pa6h53
xkoAoJF1Wo6pfPH9HCNvDq/oDzt2K1eU
=WQ0K
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to