Commit 0fee4077 by James Cammarata

Merge pull request #7909 from Elemecca/t-apt-list

Restore #6484 (YAML lists in apt) reverted by c7511688.
parents 1adb6dfa 769ee61f
......@@ -421,7 +421,7 @@ def main():
update_cache = dict(default=False, aliases=['update-cache'], type='bool'),
cache_valid_time = dict(type='int'),
purge = dict(default=False, type='bool'),
package = dict(default=None, aliases=['pkg', 'name']),
package = dict(default=None, aliases=['pkg', 'name'], type='list'),
deb = dict(default=None),
default_release = dict(default=None, aliases=['default-release']),
install_recommends = dict(default='yes', aliases=['install-recommends'], type='bool'),
......@@ -511,7 +511,7 @@ def main():
install_recommends=install_recommends,
force=force_yes, dpkg_options=p['dpkg_options'])
packages = p['package'].split(',')
packages = p['package']
latest = p['state'] == 'latest'
for package in packages:
if package.count('=') > 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment