More build fixes.
authorCarl Hetherington <cth@carlh.net>
Wed, 25 Jun 2014 22:09:37 +0000 (23:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 25 Jun 2014 22:09:37 +0000 (23:09 +0100)
cscript

diff --git a/cscript b/cscript
index f699e8089bd4ad04c9ace41c03be5b3b146f6756..fd8d36d1ed726cde6caf61979bad2512d9078f48 100644 (file)
--- a/cscript
+++ b/cscript
@@ -166,12 +166,11 @@ def build(target, options):
     elif target.platform == 'linux':
         if target.distro == 'debian' or target.distro == 'ubuntu':
             cmd += ' --target-debian'
+            if target.version == 'unstable':
+                cmd += ' --debian-unstable'
         elif target.distro == 'centos':
             cmd += ' --target-centos'
 
-    if target.distro == 'debian' and target.version == 'unstable':
-        cmd += ' --debian-unstable'
-
     target.command(cmd)
     target.command('./waf')