Skip to content

Commit dcf9651

Browse files
committed
Merge pull request ansible#61 from techtonik/patch-2
composer: Fix `changed` status that always returns False
2 parents 681db4c + 119e5a3 commit dcf9651

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packaging/composer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ def parse_out(string):
101101
return re.sub("\s+", " ", string).strip()
102102

103103
def has_changed(string):
104-
return (re.match("Nothing to install or update", string) != None)
104+
if "Nothing to install or update" in string:
105+
return False
106+
else:
107+
return True
105108

106109
def composer_install(module, command, options):
107110
php_path = module.get_bin_path("php", True, ["/usr/local/bin"])

0 commit comments

Comments
 (0)