From 4b1caf9ed16ba3dfdfce42aab681c336e70c79c0 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Wed, 8 Jan 2014 15:12:54 +0100
Subject: [PATCH] prepare to build on saucy

---
 README-fcdistros.txt   | 3 ++-
 build.common           | 2 +-
 pkgs.py                | 2 +-
 vbuild-init-vserver.sh | 4 ++--
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/README-fcdistros.txt b/README-fcdistros.txt
index ab3e1555..4fcfaecc 100644
--- a/README-fcdistros.txt
+++ b/README-fcdistros.txt
@@ -12,7 +12,8 @@
 # #################### debians and ubuntus
 #
 # the build utilities can now produce a build VM for the most recent
-# debians (squeeze, wheezy) and ubuntus ( oreinic, precise, quantal, raring )
+# debians (squeeze, wheezy) and ubuntus ( oreinic, precise, quantal,
+# raring, saucy )
 # 
 # of course we're nowhere close to supporting the whole PLC on these
 # systems, as packaging for debian requires manual tweaks in every
diff --git a/build.common b/build.common
index 53371c02..527d222e 100644
--- a/build.common
+++ b/build.common
@@ -63,7 +63,7 @@ function pl_getReleaseName () {
 	[Ss]L*)
 	    releasename=sl$release
 	    ;;
-	squeeze|wheezy|oneiric|precise|quantal|raring)
+	squeeze|wheezy|oneiric|precise|quantal|raring|saucy)
 	    releasename=$distro
 	    ;;
 	*)
diff --git a/pkgs.py b/pkgs.py
index ced8d97c..f73a32e6 100755
--- a/pkgs.py
+++ b/pkgs.py
@@ -40,7 +40,7 @@ known_fcdistros = [ 'centos5','centos6',
                     # debians
                     'squeeze','wheezy',
                     # ubuntus
-                    'oneiric', 'precise', 'quantal', 'raring' ]
+                    'oneiric', 'precise', 'quantal', 'raring', 'saucy' ]
 default_pldistro='onelab'
 
 known_keywords=['groupname', 'groupdesc', 
diff --git a/vbuild-init-vserver.sh b/vbuild-init-vserver.sh
index b68bc404..1e8ef4a5 100755
--- a/vbuild-init-vserver.sh
+++ b/vbuild-init-vserver.sh
@@ -85,7 +85,7 @@ function package_method () {
     fcdistro=$1; shift
     case $fcdistro in
 	f[0-9]*|centos[0-9]*|sl[0-9]*) echo yum ;;
-	squeeze|wheezy|oneiric|precise|quantal|raring) echo debootstrap ;;
+	squeeze|wheezy|oneiric|precise|quantal|raring|saucy) echo debootstrap ;;
 	*) echo Unknown distro $fcdistro ;;
     esac 
 }
@@ -96,7 +96,7 @@ function debian_mirror () {
     case $fcdistro in
 	squeeze|wheezy) 
 	    echo http://ftp2.fr.debian.org/debian/ ;;
-	oneiric|precise|quantal|raring) 
+	oneiric|precise|quantal|raring|saucy) 
 	    echo http://mir1.ovh.net/ubuntu/ubuntu/ ;;
 	*) echo unknown distro $fcdistro; exit 1;;
     esac
-- 
2.47.0