Author: rob
Date: Thu Feb 10 10:35:26 2011
New Revision: 25879
URL: https://svn.nixos.org/websvn/nix/?rev=25879&sc=1

Log:
pass svn/bzr revisions as integers

Modified:
   hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm

Modified: hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm
==============================================================================
--- hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       Thu Feb 10 01:14:13 
2011        (r25878)
+++ hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       Thu Feb 10 10:35:26 
2011        (r25879)
@@ -584,7 +584,7 @@
                 when ("boolean") {
                     push @res, "--arg", $input, $alt->{value};
                 }
-                when (["svn", "svn-checkout", "path", "build", "git", "hg", 
"sysbuild", "bzr", "bzr-checkout"]) {
+                when (["path", "build", "git", "hg", "sysbuild"]) {
                     push @res, "--arg", $input, (
                         "{ outPath = builtins.storePath " . $alt->{storePath} 
. "" .
                         (defined $alt->{revision} ? "; rev = \"" . 
$alt->{revision} . "\"" : "") .
@@ -592,6 +592,13 @@
                         ";}"
                     );
                 }
+                when (["svn", "svn-checkout", "bzr", "bzr-checkout"]) {
+                    push @res, "--arg", $input, (
+                        "{ outPath = builtins.storePath " . $alt->{storePath} 
. "" .
+                        (defined $alt->{revision} ? "; rev = " . 
$alt->{revision} . "" : "") .
+                        ";}"
+                    );
+                }
             }
         }
     }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to