From 48eafb2746863cad785476bf1bf78eb286a7bd8b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 7 Jul 2016 13:18:38 +0200 Subject: debian-codename-to-version.sh: Drop the 9999 package revision thing for unstable. Debian testing and Debian unstable are mostly the next stable Debian release, currently Debian 9. So, Debian testing currently equals Debian stretch. And Debian unstable is basically the staging area for Debian testing, so it is a bit newer than Debian testing, e.g. 9.01 for the current release cycle of Debian. --- bin/debian-codename-to-version.sh | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/bin/debian-codename-to-version.sh b/bin/debian-codename-to-version.sh index 42f497b..8c8745c 100755 --- a/bin/debian-codename-to-version.sh +++ b/bin/debian-codename-to-version.sh @@ -43,32 +43,13 @@ fi typeset -i ret="0" case "${codename}" in - # The first version number is actually "fake", - # but given it's a rolling release, - # we can't really do better here. - ("sid"|"unstable") echo "9999";; + # sid | unstable's version number must be + # a bit higher than the current testing version + # (which is known early in advance to the next + # upcoming release). + ("sid"|"unstable") echo "9.01";; - # FIXME: add "testing" - but how? It's not really - # a stable release on its own, but a rolling - # release (see sid/unstable above). Yet, it differs - # from sid/unstable by not having one unique - # code name, but a floating one of the next - # stable release. We know the new release number - # beforehand, but mapping "testing" to the - # upcoming version number means that "testing"s - # version number itself would be floating, creating - # problems after each new release and requiring an - # update. On the other hand, giving "testing" a - # fixed version number such as "999" (smaller than - # "unstable"s, yet bigger than anything we encountered - # so far) would create an inconsistency: - # The "testing" code name would have a different - # version number than the code-name-to-be-released- - # next. - # For now and due to the aforementioned problems, - # I decided to not handle the "testing" code name - # at all. - ("stretch") echo "9";; + ("stretch"|"testing") echo "9";; ("jessie") echo "8";; ("wheezy") echo "7";; -- cgit v1.2.3