[packages] Log unfamiliar package operations

- unknown operations get a warning
 - "source" will be added from netinstall shortly
This commit is contained in:
Adriaan de Groot 2020-02-18 12:02:16 +01:00
parent 056b0d7548
commit 7cadfb8ddd
2 changed files with 10 additions and 4 deletions

View file

@ -478,7 +478,10 @@ def run_operations(pkgman, entry):
else:
for package in package_list:
pkgman.install_package(package, from_local=True)
elif key == "source":
libcalamares.utils.debug("Package-list from {!s}".format(entry[key]))
else:
libcalamares.utils.warning("Unknown package-operation key {!s}".format(key))
completed_packages += len(package_list)
libcalamares.job.setprogress(completed_packages * 1.0 / total_packages)
libcalamares.utils.debug(pretty_name())