]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix parsing of `puppet-lint --version`
authorJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:44:08 +0000 (06:44 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:44:08 +0000 (06:44 +1100)
Summary: This seems to be off, at least for `puppet-lint` versions greater than 1.0.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11312

src/lint/linter/ArcanistPuppetLintLinter.php

index be2e6076e2ec00cac54ce08886a2ce113cc2834c..bc8145c4d6a5a92d86fa20d695bfc9f86ed4e280 100644 (file)
@@ -38,7 +38,7 @@ final class ArcanistPuppetLintLinter extends ArcanistExternalLinter {
     list($stdout) = execx('%C --version', $this->getExecutableCommand());
 
     $matches = array();
-    $regex = '/^Puppet-lint (?P<version>\d+\.\d+\.\d+)$/';
+    $regex = '/^puppet-lint (?P<version>\d+\.\d+\.\d+)$/';
     if (preg_match($regex, $stdout, $matches)) {
       return $matches['version'];
     } else {