Add option to automatically upgrade packages for CI server, etc.

This commit is contained in:
Tom Robinson
2010-03-03 09:08:02 -08:00
parent 3da2d3718b
commit b0d62a8608
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ function ensurePackageUpToDate(packageName, requiredVersion, options)
if (!options.noupdate)
{
print("Update? yes or no:");
if (system.stdin.readLine() !== "yes\n")
if (!SYSTEM.env["CAPP_AUTO_UPGRADE"] && system.stdin.readLine() !== "yes\n")
{
print("Jake aborted.");
OS.exit(1);