summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-07 13:18:38 +0200
committerArctica Builder (CHEVALBLANC) <arctica-builder@chevalblanc>2016-07-07 13:19:04 +0200
commit48eafb2746863cad785476bf1bf78eb286a7bd8b (patch)
tree581acdd197369d5f567614ff87d4d13ee5f6a139
parentc30c4ab54cc6a487dddb312d76940092e89c7a36 (diff)
downloadbuildscripts-48eafb2746863cad785476bf1bf78eb286a7bd8b.tar.gz
buildscripts-48eafb2746863cad785476bf1bf78eb286a7bd8b.tar.bz2
buildscripts-48eafb2746863cad785476bf1bf78eb286a7bd8b.zip
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.
-rwxr-xr-xbin/debian-codename-to-version.sh31
1 files 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";;