On Wed, Oct 24, 2012 at 05:44:00PM +0100, Adam D. Barratt wrote:
> From a very quick scan and with apologies if I'm missing something
> due to unfamiliarity with the codebase:
>
> -my @official_suites = qw(oldstable stable proposed-updates testing
> unstable);
> +my @official_suites = qw(oldstable stable proposed-updates testing
> unstable experimental);
>
> Should that list include oldstable-proposed-updates, squeeze-updates
> and/or t-p-u?
I'd suggest this debdiff (please Cc me on reply):
--- apt-show-versions-0.16/apt-show-versions 2009-06-19 15:37:00.000000000 +0000
+++ apt-show-versions-0.16+squeeze1/apt-show-versions 2012-12-27 20:55:40.000000000 +0000
@@ -241,7 +241,7 @@
my $default_release = $_config->get("APT::Default-Release");
-my @official_suites = qw(oldstable stable proposed-updates testing unstable);
+my @official_suites = qw(oldstable oldstable-updates oldstable-proposed-updates stable stable-updates proposed-updates testing testing-proposed-updates unstable experimental);
# %official_suites:
# - Keys: Known official suite names
# - Values: Order index
@@ -560,7 +560,7 @@
return $pkgfile if ($releasenames{$pkgfile});
$pkgfile =~ s{.*/}{};
return undef if ($pkgfile eq 'status');
- foreach (keys %releasenames) {
+ foreach (sort { length($b) <=> length($a) } keys %releasenames) {
return $_ if ($_ eq substr($pkgfile, 0, length($_)));
}
# As package file has no release file, create a fallback %releasenames
diff -Nru apt-show-versions-0.16/debian/changelog apt-show-versions-0.16+squeeze1/debian/changelog
--- apt-show-versions-0.16/debian/changelog 2009-06-19 15:48:04.000000000 +0000
+++ apt-show-versions-0.16+squeeze1/debian/changelog 2012-12-27 20:52:55.000000000 +0000
@@ -1,3 +1,12 @@
+apt-show-versions (0.16+squeeze1) stable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix bug which caused squeeze-updates and squeeze to mask each other.
+ Thanks to Dominic Hargreaves. (Closes: #623252)
+ * Update the list of official suites.
+
+ -- Philipp Kern <pkern@debian.org> Thu, 27 Dec 2012 20:10:26 +0000
+
apt-show-versions (0.16) unstable; urgency=low
[ Andreas Hoenen ]
Kind regards
Philipp Kern
Attachment:
signature.asc
Description: Digital signature