Your message dated Fri, 28 Apr 2017 18:03:40 +0000
with message-id <[email protected]>
and subject line Bug#784284: fixed in distro-info 0.15
has caused the Debian Bug report #784284,
regarding distro-info: Add support for --alias to return "oldstable"
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.)


-- 
784284: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784284
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: distro-info
Version: 0.14
Severity: wishlist
Tags: patch

Dear Maintainer,

It would be very convenient, if debian-distro-info would be able to
return oldstable when current oldstable is supplied to --alias.

The attached patch implements this.

Cheers,
sur5r

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (1000, 'testing'), (500, 'unstable'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages distro-info depends on:
ii  distro-info-data  0.26
ii  libc6             2.19-18

distro-info recommends no packages.

Versions of packages distro-info suggests:
pn  shunit2  <none>

-- debconf-show failed
diff --git a/distro-info-util.c b/distro-info-util.c
index 48b5a5d..b262f71 100644
--- a/distro-info-util.c
+++ b/distro-info-util.c
@@ -848,6 +848,8 @@ int main(int argc, char *argv[]) {
 
 #ifdef DEBIAN
     if(alias_codename) {
+        const distro_t *oldstable = get_distro(distro_list, date, filter_oldstable,
+                                               select_oldstable);
         const distro_t *stable = get_distro(distro_list, date, filter_stable,
                                             select_latest_release);
         const distro_t *testing = get_distro(distro_list, date, filter_testing,
@@ -857,6 +859,8 @@ int main(int argc, char *argv[]) {
         if(unlikely(stable == NULL || testing == NULL || unstable == NULL)) {
             fprintf(stderr, NAME ": " OUTDATED_ERROR "\n");
             return_value = EXIT_FAILURE;
+        } else if(strcmp(oldstable->series, alias_codename) == 0) {
+            printf("oldstable\n");
         } else if(strcmp(stable->series, alias_codename) == 0) {
             printf("stable\n");
         } else if(strcmp(testing->series, alias_codename) == 0) {

--- End Message ---
--- Begin Message ---
Source: distro-info
Source-Version: 0.15

We believe that the bug you reported is fixed in the latest version of
distro-info, 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.
Benjamin Drung <[email protected]> (supplier of updated distro-info 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: Fri, 28 Apr 2017 19:45:36 +0200
Source: distro-info
Binary: distro-info libdistro-info-perl python-distro-info python3-distro-info
Architecture: source
Version: 0.15
Distribution: unstable
Urgency: medium
Maintainer: Benjamin Drung <[email protected]>
Changed-By: Benjamin Drung <[email protected]>
Description:
 distro-info - provides information about the distributions' releases
 libdistro-info-perl - information about distributions' releases (Perl module)
 python-distro-info - information about distributions' releases (Python module)
 python3-distro-info - information about distributions' releases (Python 3 
module)
Closes: 784284
Changes:
 distro-info (0.15) unstable; urgency=medium
 .
   [ Mike Miller ]
   * debian-distro-info: Support oldstable with --alias. (Closes: #784284)
 .
   [ Benjamin Drung ]
   * Fix flake8 and pylint issues found in Python code
   * Run flake8 and pylint checks on Python code in test suite
   * Python: Add DistroInfo.get_all() method
   * Bump Standard-Version to 3.9.8 (no changes required)
   * Use https for Vcs-Git and Vcs-Browser URLs
Checksums-Sha1:
 b1b6d1dbe0a464c1708a44330c83e791d16bfad7 1972 distro-info_0.15.dsc
 190229b960500ce916c2d7ddefbf49003ac450e4 27360 distro-info_0.15.tar.xz
Checksums-Sha256:
 495f1ecfcc00b4e0d6fe74cda0dce3590d677cfddfaeda7fb4a6bfce10a68137 1972 
distro-info_0.15.dsc
 21ff32c6975806abaadfdd56292739476f4ac5d529eab499685b0cb5f22fbf2f 27360 
distro-info_0.15.tar.xz
Files:
 f09bebd787db524ae9599ba122b2841a 1972 devel optional distro-info_0.15.dsc
 ee9579dfe63e77325a6f0884f23dbd28 27360 devel optional distro-info_0.15.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJZA4HeAAoJEN2M1aXejH56BMcP/2nO8wgcG+uKn6Ns0Iii5iWN
3WitQDF+IsfER2Rjv3fvoPkohyeGjKqjijdSSFSGT0E4D65X4PxdP9V0rVLH6ndX
0ZMilfKbFoYoD28mNVwYoVZ+F4ch0tw32dqnJlbcV5JAxuc7Et8qZEj/SRleJEFM
a0zNPzflw3MTzoAbcSbgXn22Zv7vrESjKLFjIFMcPQ8SpHoRezxWH1Wx51i+N0Pk
t2bVlEuZYL5q0tFDmF2EcGlCHWEZJi2e2hdgwMnOxba2bQ87dlvHiBMRp0pJtZWh
hxEO878VwKJZQijvXhaGol6JeuUn61Y1v5/bLR6T1oFVwqYPt4C+DmvEXlAB0+rz
e/seVL/Nl63zcTc5/R1d1iWO8sgkcir6ciusnQXbuHXVdXkSZAlYizwhlYEfloIk
xroszdEGQgdb3OW/9JeiAARSGKKwlquT53MWx8R85qyvIpczm5YBYk0N4lr+GJDj
HN15FSlO0rMaA8cVHb46dvdq1Zln9dSYzUGdZ4dL6xSgMpI6sJeVSMbhDos5AF57
4QASrxug+o+AmWzQoJAxX0TRAB8ypcSJF4HFPeGtRfwD1A9dre3TY4HrewwPHecs
yv3T1pTJcGZDmCxHYdxrOHPjRHxeOZmTFD5b+2lTAuEMyNCfLuGN+RIgLVlFC6mY
dLdIHCan2MpU008cigpI
=uKUK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to