Merge pull request #61 from techtonik/patch-2
composer: Fix `changed` status that always returns False
This commit is contained in:
commit
dcf9651c54
1 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,10 @@ def parse_out(string):
|
||||||
return re.sub("\s+", " ", string).strip()
|
return re.sub("\s+", " ", string).strip()
|
||||||
|
|
||||||
def has_changed(string):
|
def has_changed(string):
|
||||||
return (re.match("Nothing to install or update", string) != None)
|
if "Nothing to install or update" in string:
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
def composer_install(module, command, options):
|
def composer_install(module, command, options):
|
||||||
php_path = module.get_bin_path("php", True, ["/usr/local/bin"])
|
php_path = module.get_bin_path("php", True, ["/usr/local/bin"])
|
||||||
|
|
Loading…
Reference in a new issue