mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
packageutils: Ensure packages argument is a list
It's easy to screw this up from the callers, and gives weird interactions with apper
This commit is contained in:
parent
4cdae27cb2
commit
cc72f74f97
@ -38,6 +38,8 @@ def check_packagekit(parent, errbox, packages):
|
|||||||
if not packages:
|
if not packages:
|
||||||
logging.debug("No PackageKit packages to search for.")
|
logging.debug("No PackageKit packages to search for.")
|
||||||
return
|
return
|
||||||
|
if type(packages) is not list:
|
||||||
|
packages = [packages]
|
||||||
|
|
||||||
logging.debug("PackageKit check/install for packages=%s", packages)
|
logging.debug("PackageKit check/install for packages=%s", packages)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user