Skip to content

Commit ef93b27

Browse files
Fix package install output when a no-op #19481 (#19483)
* Fix package install output when a no-op. * Update conan/tools/system/package_manager.py --------- Co-authored-by: James <memsharded@gmail.com>
1 parent 6f7a9f1 commit ef93b27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conan/tools/system/package_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def _install_substitutes(self, *packages_substitutes, update=False, check=True,
177177
raise ConanException("None of the installs for the package substitutes succeeded.")
178178

179179
def _install(self, packages, update=False, check=True, host_package=True, **kwargs):
180+
orig_packages = packages
180181
pkgs = self._conanfile.system_requires.setdefault(self._active_tool, {})
181182
install_pkgs = pkgs.setdefault("install", [])
182183
install_pkgs.extend(p for p in packages if p not in install_pkgs)
@@ -211,8 +212,7 @@ def _install(self, packages, update=False, check=True, host_package=True, **kwar
211212
**kwargs)
212213
return self._conanfile_run(command, self.accepted_install_codes, quiet=False)
213214
else:
214-
self._conanfile.output.info("System requirements: {} already "
215-
"installed".format(" ".join(packages)))
215+
self._conanfile.output.info(f"System requirements: {' '.join(orig_packages)} already installed")
216216

217217
def _update(self):
218218
# we just update the package manager database in case we are in 'install mode'

0 commit comments

Comments
 (0)