diff --git a/packaging/language/composer.py b/packaging/language/composer.py index 8e11d25216b..54cb3f17ba3 100644 --- a/packaging/language/composer.py +++ b/packaging/language/composer.py @@ -109,10 +109,7 @@ def parse_out(string): return re.sub("\s+", " ", string).strip() def has_changed(string): - if "Nothing to install or update" in string: - return False - else: - return True + return "Nothing to install or update" not in string def composer_install(module, command, options): php_path = module.get_bin_path("php", True, ["/usr/local/bin"])