]> granicus.if.org Git - sudo/commitdiff
decode debian code names
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 17 Jul 2010 22:29:29 +0000 (18:29 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 17 Jul 2010 22:29:29 +0000 (18:29 -0400)
--HG--
branch : 1.7

pp

diff --git a/pp b/pp
index ae43a5fe104c0740e5bc1eacd015f16772629022..fc7a83607783d2149e2a27d1c26c832c4f2ca48e 100755 (executable)
--- a/pp
+++ b/pp
@@ -3953,6 +3953,41 @@ pp_backend_deb_probe() {
     case $release in
         *[!.0-9r]*)
            release=`lsb_release -cs`
+           case $release in
+               buzz)
+                   release="1.1"
+                   ;;
+               rex)
+                   release="1.2"
+                   ;;
+               bo)
+                   release="1.3"
+                   ;;
+               hamm)
+                   release="2.0"
+                   ;;
+               slink)
+                   release="2.1"
+                   ;;
+               potato)
+                   release="2.2"
+                   ;;
+               woody)
+                   release="3.0"
+                   ;;
+               sarge)
+                   release="3.1"
+                   ;;
+               etch)
+                   release="4.0"
+                   ;;
+               lenny)
+                   release="5.0"
+                   ;;
+               squeeze)
+                   release="6.0"
+                   ;;
+           esac
            ;;
        *)
            # Remove trailing revision number and any dots