From 67083e436bb8924869039d7cbe2f5ba8a8ad5ebc Mon Sep 17 00:00:00 2001 From: Fabian Grutschus Date: Mon, 14 Oct 2013 15:07:35 +0200 Subject: [PATCH] Check for exit code is equal to 0 instead of 127 --- src/Composer/Util/Perforce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/Perforce.php b/src/Composer/Util/Perforce.php index dc09a5066..663f58be3 100644 --- a/src/Composer/Util/Perforce.php +++ b/src/Composer/Util/Perforce.php @@ -370,7 +370,7 @@ class Perforce $result = ''; $exitCode = $processExecutor->execute('p4 -p ' . $url . ' info -s', $result); - return false === strpos($result, 'error') && 127 != $exitCode; + return false === strpos($result, 'error') && 0 == $exitCode; } public function getComposerInformation($identifier)