Your message dated Sun, 02 Mar 2008 13:14:19 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#427221: fixed in lsb 3.2-1 has caused the Debian Bug report #427221, regarding lsb-relase: Honor /etc/debian_version first 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.) -- 427221: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427221 Debian Bug Tracking System Contact [EMAIL PROTECTED] with problems
--- Begin Message ---Package: lsb Version: 3.1-23.1 Severity: normal Tags: patch Lsb_release code tries first to determine the system's version based on APT's policy ('apt-show policy') and, if it fails, it tries to obtain the information from /etc/debian_version. This behaviour, I guess, was introduced due to #341231. The changelog in 3.0-15 said that /etc/debian_version has priority, but that is not true. lsb_release will not work in this scenario: 1.- A user installed the oldstable release ('X' currently) 2.- In preparation for an upgrade, he changes his sources.list to point to the next release ('Y'). 3.- The sysadmin run 'apt-get update' to get APT to reread the sources.list 4.- The sysadmin has doubts about the upgrade and does NOT upgrade the system In this situation, lsb_release will just pickup the first entry it parsed from 'apt-show policy' (sorted, by name?). Under some circunstances, in the above case it could be 'Y' instead of 'X' even though the system has *not* been upgraded. IMHO lsb_release should honor the contents of /etc/debian_version and, if the contents refer to testing/unstable (i.e. not numeric) try to determine the release based on policy. Attached is a patch that changes it behaviour so that it will only try to check APT's policy if it trying to distinguish between testing/unstable (or 'lenny/sid', or whatever). It also speeds up lsb_release a little bit. Regards Javier--- lsb_release.orig 2007-06-01 18:08:23.000000000 +0200 +++ lsb_release 2007-06-01 23:41:16.000000000 +0200 @@ -160,8 +160,26 @@ distinfo['DESCRIPTION'] = '%(ID)s %(OS)s' % distinfo + if os.path.exists('/etc/debian_version'): + release = open('/etc/debian_version').read().strip() + if not release[0:1].isalpha(): + # /etc/debian_version should be numeric + codename = lookup_codename(release, 'n/a') + distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename }) + else: + distinfo['RELEASE'] = release + distinfo['CODENAME'] = None + + # Only use apt information if we did not get the proper information + # from /etc/debian_version or if we don't have a codename + # (which will happen if /etc/debian_version does not contain a + # number but some text like 'testing/unstable' or 'lenny/sid') + # + # This is slightly faster and less error prone in case the user + # has an entry in his /etc/apt/sources.list but has not actually + # upgraded the system. rinfo = guess_release_from_apt() - if rinfo: + if rinfo and not distinfo['CODENAME']: release = rinfo.get('version') if release: codename = lookup_codename(release, 'n/a') @@ -173,14 +191,6 @@ else: codename = 'sid' distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename }) - elif os.path.exists('/etc/debian_version'): - release = open('/etc/debian_version').read().strip() - if not release[0:1].isalpha(): - # /etc/debian_version should be numeric - codename = lookup_codename(release, 'n/a') - distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename }) - else: - distinfo['RELEASE'] = release if 'RELEASE' in distinfo: distinfo['DESCRIPTION'] += ' %(RELEASE)s' % distinfo
--- End Message ---
--- Begin Message ---Source: lsb Source-Version: 3.2-1 We believe that the bug you reported is fixed in the latest version of lsb, which is due to be installed in the Debian FTP archive: lsb-base_3.2-1_all.deb to pool/main/l/lsb/lsb-base_3.2-1_all.deb lsb-core_3.2-1_amd64.deb to pool/main/l/lsb/lsb-core_3.2-1_amd64.deb lsb-cxx_3.2-1_amd64.deb to pool/main/l/lsb/lsb-cxx_3.2-1_amd64.deb lsb-desktop_3.2-1_amd64.deb to pool/main/l/lsb/lsb-desktop_3.2-1_amd64.deb lsb-graphics_3.2-1_amd64.deb to pool/main/l/lsb/lsb-graphics_3.2-1_amd64.deb lsb-languages_3.2-1_amd64.deb to pool/main/l/lsb/lsb-languages_3.2-1_amd64.deb lsb-multimedia_3.2-1_amd64.deb to pool/main/l/lsb/lsb-multimedia_3.2-1_amd64.deb lsb-printing_3.2-1_amd64.deb to pool/main/l/lsb/lsb-printing_3.2-1_amd64.deb lsb-qt4_3.2-1_amd64.deb to pool/main/l/lsb/lsb-qt4_3.2-1_amd64.deb lsb-release_3.2-1_all.deb to pool/main/l/lsb/lsb-release_3.2-1_all.deb lsb_3.2-1.dsc to pool/main/l/lsb/lsb_3.2-1.dsc lsb_3.2-1.tar.gz to pool/main/l/lsb/lsb_3.2-1.tar.gz lsb_3.2-1_all.deb to pool/main/l/lsb/lsb_3.2-1_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. Chris Lawrence <[EMAIL PROTECTED]> (supplier of updated lsb 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: Sun, 02 Mar 2008 02:13:58 -0600 Source: lsb Binary: lsb-core lsb-graphics lsb-cxx lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing lsb lsb-base lsb-release Architecture: source all amd64 Version: 3.2-1 Distribution: unstable Urgency: low Maintainer: Chris Lawrence <[EMAIL PROTECTED]> Changed-By: Chris Lawrence <[EMAIL PROTECTED]> Description: lsb - Linux Standard Base 3.2 support package lsb-base - Linux Standard Base 3.2 init script functionality lsb-core - Linux Standard Base 3.2 core support package lsb-cxx - Linux Standard Base 3.2 C++ support package lsb-desktop - Linux Standard Base 3.2 Desktop support package lsb-graphics - Linux Standard Base 3.2 graphics support package lsb-languages - Linux Standard Base 3.2 Runtime Languages package lsb-multimedia - Linux Standard Base 3.2 Multimedia package lsb-printing - Linux Standard Base 3.2 Printing package lsb-qt4 - Linux Standard Base 3.2 Qt4 support package lsb-release - Linux Standard Base version reporting utility Closes: 427221 439402 447184 451532 453636 454352 462757 463082 468670 Changes: lsb (3.2-1) unstable; urgency=low . * New LSB version. + Add libpam0g, libncurses5 to lsb-base. + Add libqt4-gui, libfreetype6, libxrender1, libxft2 to lsb-desktop. + lsb-qt4 appears to be deprecated by the new lsb-desktop requirements. + Add new printing, multimedia, and languages modules. * More killproc() fixes. (Closes: #453636) * Use /etc/debian_version in preference to apt autodetection. (Closes: #427221) * Handle non-zero status from start-stop-daemon better. (Closes: #451532) * All fancy output uses /bin/echo -e now. (Closes: #463082) * Add/update translations: fi (Closes: #447184) ro (Closes: #468670) ja (Closes: #462757) pt (Closes: #439402) * Ignore invalid lines in /etc/lsb-release. (Closes: #454352) Files: 1cd1951aae7f706647fc3fc25c1bbb10 764 misc extra lsb_3.2-1.dsc 76d485b5e1e404701763a1bf8274ce1b 48535 misc extra lsb_3.2-1.tar.gz b060647228a8cc1983b0f12074d591f7 11862 misc extra lsb_3.2-1_all.deb 15b68a532195083ff0a412f2b1610b05 17246 misc required lsb-base_3.2-1_all.deb 941341073341742523e235c0f78d8e27 17378 misc extra lsb-release_3.2-1_all.deb 788f715a6735fef9b6175e777bc6c608 34264 misc extra lsb-core_3.2-1_amd64.deb f3dc988e2806ca008b4dc9f270094e57 11898 misc extra lsb-graphics_3.2-1_amd64.deb a8f4e96d4fe89916897b26c4ad66a710 11866 misc extra lsb-cxx_3.2-1_amd64.deb 58639c58bc3de4e50c474a10665a94d5 11988 misc extra lsb-desktop_3.2-1_amd64.deb 44e394dcdef0f34e2785b233276ac6ab 11932 misc extra lsb-qt4_3.2-1_amd64.deb e6a7587ba3e1229c6c14d1c77c056704 11894 misc extra lsb-languages_3.2-1_amd64.deb dc462f7ab62c05835532ce4ffe793c24 11868 misc extra lsb-multimedia_3.2-1_amd64.deb 157dbc0a9a0b20507b7d866e27ef876c 11892 misc extra lsb-printing_3.2-1_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHyml72wQKE6PXubwRAlwhAJ0YI6z4yf44b5G//tG2DppDRtbZdgCeLtzn knReefVjouVvf4zgJA6Yogw= =C6tl -----END PGP SIGNATURE-----
--- End Message ---

