cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dba...@apache.org
Subject [2/5] cordova-ubuntu git commit: Fix (Yn) prompt issue with chroot install
Date Fri, 02 Sep 2016 13:57:14 GMT
Fix (Yn) prompt issue with chroot install


Project: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/commit/6e8fef44
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/tree/6e8fef44
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/diff/6e8fef44

Branch: refs/heads/4.3.x
Commit: 6e8fef445f0972785472f5bc42a908cbbfce68c9
Parents: cc9f2b0
Author: Alexandre Abreu <alexandre.abreu@canonical.com>
Authored: Wed Jul 13 16:14:32 2016 -0400
Committer: David Barth <david.barth@canonical.com>
Committed: Fri Sep 2 15:56:22 2016 +0200

----------------------------------------------------------------------
 bin/templates/project/cordova/lib/build.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/6e8fef44/bin/templates/project/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/build.js b/bin/templates/project/cordova/lib/build.js
index 484ac6c..8a9d4a9 100644
--- a/bin/templates/project/cordova/lib/build.js
+++ b/bin/templates/project/cordova/lib/build.js
@@ -2,7 +2,7 @@
 
 /*
  *
- * Copyright 2014 Canonical Ltd.
+ * Copyright 2014-2016 Canonical Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -344,7 +344,7 @@ function checkEnv(ubuntuDir) {
 
         rl.on('line', function(line) {
             rl.close();
-            if (line !== 'Y' && line !== 'y') {
+            if (line !== 'Y' && line !== 'y' && line.length !== 0) {
                 deferred.reject(new Error());
                 return;
             }
@@ -398,7 +398,7 @@ function checkChrootEnv(ubuntuDir, architecture, framework) {
 
         rl.on('line', function(line) {
             rl.close();
-            if (line !== 'Y' && line !== 'y') {
+            if (line !== 'Y' && line !== 'y' && line.length != 0) {
                 deferred.reject(new Error());
                 return;
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message