composer: simplify has_changed()

This commit is contained in:
Rene Moser 2015-09-11 21:20:20 +02:00 committed by Matt Clay
parent 42a28d92e2
commit 61fcbe0d51

View file

@ -109,10 +109,7 @@ def parse_out(string):
return re.sub("\s+", " ", string).strip() return re.sub("\s+", " ", string).strip()
def has_changed(string): def has_changed(string):
if "Nothing to install or update" in string: return "Nothing to install or update" not 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"])