Package: python-central
Version: 0.6.17
Severity: important

Attempting to remove a Python runtime (specifically, python2.4-minimal,
which I'm belatedly deinstalling for the sake of the latest
python-testtools package) at the same time as reverse dependencies fails
because ActionRuntimeRemove.run tries to use the undefined arch variable:

Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2357, in <module>
    main()
  File "/usr/bin/pycentral", line 2351, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1820, in run
    and not os.path.exists('/var/lib/dpkg/info/%s/%s.list' % (arch, pkgname)):
NameError: global name 'arch' is not defined
dpkg: error processing python2.4-minimal (--remove):
 subprocess installed pre-removal script returned error exit status 1

Could you please take a look?  I suspect adding a call to

    arch = self.get_arch()

at the top of the run method should suffice to address the error.

Thanks!

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

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-central depends on:
ii  python                        2.6.6-14   interactive high-level object-orie

python-central recommends no packages.

python-central suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to