Skip to content

Commit 54dd1bb

Browse files
committed
Improve package_manager to print info message if no matching package found
... and if the package is then downloaded from tstbuilds or portal Change-Id: I01b5c9033f6008d8ab48f5cb37e7f80e7d5aa629
1 parent 6840868 commit 54dd1bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testlib/package_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def install(self, package_info: TCMKPackageInfos) -> None:
138138
package_name = self.package_name(edition, version)
139139
build_system_path = self._build_system_package_path(version, package_name)
140140
packages_dir = Path(__file__).parent.parent.parent / "package_download"
141+
logger.info("Check for %s/%s", packages_dir, package_name)
142+
141143
if (package_path := packages_dir / package_name).exists():
142144
logger.info("Install from locally available package %s", package_path)
143145
self._write_package_hash(version, edition, package_path)
@@ -150,6 +152,9 @@ def install(self, package_info: TCMKPackageInfos) -> None:
150152

151153
else:
152154
# Install from tstbuild or portal
155+
logger.info(
156+
"No matching package found, install from tstbuild or portal (%s)", package_info
157+
)
153158
package_path = self.download(package_info)
154159
self._write_package_hash(version, edition, package_path)
155160
self._install_package(package_path)

0 commit comments

Comments
 (0)