(cherry picked from commit 61743ab39a
)
backport bugfix for urpmi module
add changelog
This commit is contained in:
parent
24318d51e5
commit
ec8c1cb34a
2 changed files with 4 additions and 8 deletions
2
changelogs/fragments/49881-fix-broken-urpmi-module.yaml
Normal file
2
changelogs/fragments/49881-fix-broken-urpmi-module.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- urpmi module - fixed issue #47154 can't install package with urpmi
|
|
@ -208,20 +208,14 @@ def main():
|
|||
|
||||
p = module.params
|
||||
|
||||
force_yes = p['force']
|
||||
no_recommends_yes = p['no_recommends']
|
||||
root = p['root']
|
||||
|
||||
if p['update_cache']:
|
||||
update_package_db(module)
|
||||
|
||||
packages = p['package']
|
||||
|
||||
if p['state'] in ['installed', 'present']:
|
||||
install_packages(module, packages, root, force_yes, no_recommends_yes)
|
||||
install_packages(module, p['name'], p['root'], p['force'], p['no_recommends'])
|
||||
|
||||
elif p['state'] in ['removed', 'absent']:
|
||||
remove_packages(module, packages, root)
|
||||
remove_packages(module, p['name'], p['root'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue