Your message dated Tue, 11 Mar 2008 23:32:05 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#405781: fixed in python-central 0.6.0
has caused the Debian Bug report #405781,
regarding Handle absence of debian_defaults gracefully
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.)
--
405781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=405781
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: python-central
Version: 0.5.12
Hi. I have the following in my sources.list:
deb http://http.us.debian.org/debian/ unstable main non-free contrib
deb-src http://http.us.debian.org/debian/ unstable main non-free contrib
deb-src http://http.us.debian.org/debian/ testing main non-free contrib
deb http://http.us.debian.org/debian/ testing main non-free contrib
When I try to install python-cairo, I get the following error:
1. # apt-get install python-cairo
2. Reading package lists... Done
3. Building dependency tree... Done
4. The following NEW packages will be installed:
5. python-cairo
6. 0 upgraded, 1 newly installed, 0 to remove and 819 not upgraded.
7. Need to get 0B/81.2kB of archives.
8. After unpacking 242kB of additional disk space will be used.
9. Selecting previously deselected package python-cairo.
10. (Reading database ... 122498 files and directories currently
installed.)
11. Unpacking python-cairo (from .../python-cairo_1.2.0-1_i386.deb)...
12. Setting up python-cairo (1.2.0-1) ...
13. Traceback (most recent call last):
14. File "/usr/bin/pycentral", line 1373, in ?
15. main()
16. File "/usr/bin/pycentral", line 1367, in main
17. rv = action.run(global_options)
18. File "/usr/bin/pycentral", line 870, in run
19. requested = pyversions.requested_versions_for_runtime(
pkg.version_field, version_only=True)
20. File "/usr/share/pycentral-data/pyversions.py", line 162, in
requested_versions_for_runtime
21. old = old_versions(version_only=True)
22. File "/usr/share/pycentral-data/pyversions.py", line 62, in
old_versions
23. return [v[6:] for v in _old_versions]
24. TypeError: iteration over non-sequence
25. dpkg: error processing python-cairo (--configure):
26. subprocess post-installation script returned error exit status 1
27. Errors were encountered while processing:
28. python-cairo
29. E: Sub-process /usr/bin/dpkg returned an error code (1)
It looks like pyversions.py looks for non-existent
/usr/share/python/debian_defaults, and doesn't handle its absence
gracefully. The following patch fixes the error for me:
--- pyversions.py.orig 2007-01-06 02:34:44.000000000 -0500
+++ pyversions.py 2007-01-06 02:35:39.000000000 -0500
@@ -58,6 +58,8 @@ def old_versions(version_only=False):
_old_versions = [s.strip() for s in value.split(',')]
except NoOptionError:
_old_versions = []
+ else:
+ _old_versions = []
if version_only:
return [v[6:] for v in _old_versions]
else:
@@ -76,6 +78,8 @@ def unsupported_versions(version_only=Fa
_unsupported_versions = [s.strip() for s in value.split
(',')]
except NoOptionError:
_unsupported_versions = []
+ else:
+ _unsupported_versions = []
if version_only:
return [v[6:] for v in _unsupported_versions]
else:
Cheers,
Sadrul
--- End Message ---
--- Begin Message ---
Source: python-central
Source-Version: 0.6.0
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.0.dsc
to pool/main/p/python-central/python-central_0.6.0.dsc
python-central_0.6.0.tar.gz
to pool/main/p/python-central/python-central_0.6.0.tar.gz
python-central_0.6.0_all.deb
to pool/main/p/python-central/python-central_0.6.0_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.7
Date: Tue, 11 Mar 2008 22:26:06 +0100
Source: python-central
Binary: python-central
Architecture: source all
Version: 0.6.0
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: 378146 394084 397495 398729 405781 432813 450491 452227 467372
Changes:
python-central (0.6.0) unstable; urgency=low
.
[ Summary of the changes for versions 0.5.50 up to 0.5.63 as done in Ubuntu]
* Install modules into a package and tool independent directory
/usr/share/pyshared (without the site-packages prefix), as proposed in
http://lists.debian.org/debian-python/2006/06/msg00184.html.
Let dpkg handle conflicts and replaces again.
Packages should build-depend on python-central (>= 0.6) to ensure the new
file layout.
* Place metadata about the package in /usr/share/pyshared-data/<package>,
(readable by ConfigParser). Avoids direct access to files in
/var/lib/dpkg/info and avoids calls to dpkg-query.
* Keep public modules available during upgrades.
- dh_pycentral: Call `pycentral pkgprepare' in the preinst (overridden
with DH_PYCENTRAL matching `noprepare'.
- pycentral pkgprepare: Implement.
- Duplicate the metadata in the preinst file.
* On upgrade, properly remove byte-code files not anymore in the
new version of the package.
* pkgprepare, pkginstall: Always use the default runtime as a last resort.
* Handle updates gracefully, if the old package version has shared
files already located in /usr/share/pyshared, and the new package has
them still in the old location in /usr/share/pycentral. LP: #197841.
* dh_pycentral: Remove an empty /usr/lib after moving all files.
Closes: #452227.
* Users tend to modify the /usr/bin/python symlink. Allow pythonX.Y
and /usr/bin/pythonX.Y as values. Closes: #378146, #450491, #467372.
* pycentral updatedefault: Fix name in error message. Closes: #432813.
* pyversions.py: Assume no old and unsupported versions, when
the python_defaults file is not yet installed. Closes: #405781.
* dh_pycentral: Set file permissions independently of the umask.
Closes: #398729.
* Use a default value for supported python versions, if python-minimal
is not installed, and apt-cache is not available. Closes: #394084, #397495.
* Do not crash if no /usr/share/python/debian_defaults is on the
system and assume python2.4 then. That was the last version
without this file (LP: #198456).
.
* Thanks to Michael Vogt for extensive upgrade testing, suggestions
and bug fixes.
Files:
ad498343f223bfa12627e901a0a95d40 598 python standard python-central_0.6.0.dsc
ef0ed7336543658d5412da7b777e417a 36147 python standard
python-central_0.6.0.tar.gz
4ecd90ea4768ef8bc6bbb28b9b0768ad 38158 python standard
python-central_0.6.0_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFH1xPjStlRaw+TLJwRAu8kAKCsEJ5umPHXbjTPI2v3Kbok4ginHQCghMSS
ossUN7qK7ZCE207T311D/Oc=
=hhDl
-----END PGP SIGNATURE-----
--- End Message ---