Your message dated Sun, 05 Oct 2014 10:05:44 +0000
with message-id <[email protected]>
and subject line Bug#758027: fixed in python-debian 0.1.24
has caused the Debian Bug report #758027,
regarding python-debian: debian_support's list_releases() has outdated list of 
releases
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.)


-- 
758027: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758027
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.21
Severity: normal

The list_releases() function in debian_support.py has a hard coded list of
releases. It's obviously a pain to keep this data up to date and it is a long
way out of date:

  rels = ("potato", "woody", "sarge", "etch", "lenny", "sid")

  
http://sources.debian.net/src/python-debian/0.1.22/lib/debian/debian_support.py?hl=417#L413


* the list_releases() function appears to be deleted from the namespace
  just after it is created -- it's then partly exposed through an 
"intern_release"
  function. I don't know why it's important to delete the ability to get a list
  of releases.

* The list_releases() function memoises the list of releases in the Release 
class
  but since you can't actually call list_releases(), I don't know how that
  initialisation was supposed to be done by any using code as it this step only
  happen as a side-effect of calling intern_release().

* I can't work out what intern_release is actually supposed to be for -- there's
  no documentation for it. It looks like it's for converting a release name
  into a sortable quantity.

* There are no uses of the intern_release function in the archive other than in
  test_debian_support.py.


So the options for list_releases() and intern_release()

a) just update the release list with squeeze, wheezy, jessie and jessie+1 when
   we know that name

b) instead expose the appropriate method from the python-distro-info package
   here (python-distro-info probably provides a more usable way of getting this
   data in any case)

c) mark the function as deprecated with a reference over to python-distro-info
   with the intention of getting rid of it some time during the jessie release
   cycle. I wonder if the same should be done with the Release class in
   debian_support too, but it's harder to search through the archive to see
   whether it's actually used or not.


This bit of code looks like it was work-in-progress and never quite finished,
or perhaps it was scheduled for removal but never quite removed. An historical
perspective on the code and some suggestions on how to either make it more
useful/maintainable or how to go about removing it would be appreciated.

cheers
Stuart

--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.24

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

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.
Stefano Zacchiroli <[email protected]> (supplier of updated python-debian 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: SHA256

Format: 1.8
Date: Wed, 01 Oct 2014 16:41:15 +0200
Source: python-debian
Binary: python-debian python3-debian
Architecture: source all
Version: 0.1.24
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: Stefano Zacchiroli <[email protected]>
Description:
 python-debian - Python modules to work with Debian-related data formats
 python3-debian - Python 3 modules to work with Debian-related data formats
Closes: 758027
Changes:
 python-debian (0.1.24) unstable; urgency=medium
 .
   * copyright module: make Copyright objects iterable
   * debian_support.list_releases(): update release list (Closes: #758027)
Checksums-Sha1:
 707877370113f4cc02bafd991adc29336f64f7e9 2199 python-debian_0.1.24.dsc
 3508487df1fc18fec776c38cefaf464b67a00228 288280 python-debian_0.1.24.tar.xz
 ac2de119d057e9a2dcbf52d033bf907baa4ff44b 71174 python-debian_0.1.24_all.deb
 10c56079ef12bd7c53a34db5beb0ec789167f217 50446 python3-debian_0.1.24_all.deb
Checksums-Sha256:
 cba066509494636365bb0c589502a5fe08db9c24dfaff924e3bd7ec352631470 2199 
python-debian_0.1.24.dsc
 da36ac47d8b929af12d6889c974159e00c9f7372b84041b6663bb9114e83b854 288280 
python-debian_0.1.24.tar.xz
 af28a083c7034487ec6fb9dc2a720165f08f899a39ce118cba66471def12864b 71174 
python-debian_0.1.24_all.deb
 fb124dbe8616574a20a5ff82387d97675bcd0f6c0537f5422cdc023ecb97f787 50446 
python3-debian_0.1.24_all.deb
Files:
 be6c36e281a037cae1947f6df0b79190 71174 python optional 
python-debian_0.1.24_all.deb
 b8cc45603b3e84a60f2c4bc485f493da 50446 python optional 
python3-debian_0.1.24_all.deb
 11f79efdf6d0124aa0784afd619e4b60 2199 python optional python-debian_0.1.24.dsc
 084aaab55eae088051d2374a577093d1 288280 python optional 
python-debian_0.1.24.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVDEWJ5wxUDxthmOWAQggAg/9EgF/edhLlYRC/n0DSZZVGDDGPiXAkGnl
LlmUru4aRG2qJ+HBr1ywx7lE01RAKCAXGh1k/BZZVWez++V2ui8mef8YLSBq5MYt
nclhzIb2Cji9IWeqagsMu0xtX/rEt02hhNg3hi+ssmEC+2HpyaTXaUB9tGI2wA4o
UJtz+uQ5v606kKgi32ITH1Dd9pz7KZ5KzOrETFxCqcw9oXwD2qZj4yNdYgHZL5a9
m4I03DkcwejGw0h6iIMB7bfp6OXQ71EIF6M8oIN9R9lcBuMFEaebxmpb3OSbbPm9
mxZop6f/Y81zj85aYPRZDT7CumFgamnOst/34XeJGO2/B6QWLPGVk0KNxJylWw9J
fIVBQIr7yfB+fzoOlZGSf+2bgCmdumnX3/BB1vD9PlbmBFsgEnw3hkX63KwPdDZk
Hk4HD810tydKg4KDVqXv24wQneY2gQC94+QIvs3V8TY1suO8yRhM+y5nhEGWYo2v
AVzkft7Z/5RjPCk0ug6U/KBqO/pIZf79cHu7y0benMwC1f7qodyC8WaEvdn9fFo0
8MOv7GWCbvzbJHVzdBWu9MyjdLjA1rRUFy5yFa+ApStFiB1a137piO6LhEe8BHW5
o0mogFFGaLtXn8uTMgV/i5++wqQFDmd/qurtsAoldxMQRtqHHNO2ExbQrtrdhnUE
RltiZav6IzI=
=nwIg
-----END PGP SIGNATURE-----

--- End Message ---
-- 
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint

Reply via email to