1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

opkg: fix issue that force=reinstall would not reinstall an existing package (#5705)

* opkg: fix issue that force=reinstall would not reinstall an existing package

Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>

* changelog fragment

Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
This commit is contained in:
joergho 2022-12-19 20:23:44 +01:00 committed by GitHub
parent fab73a1d1e
commit 2b39470a77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- opkg - fix issue that ``force=reinstall`` would not reinstall an existing package (https://github.com/ansible-collections/community.general/pull/5705).

View file

@ -154,7 +154,7 @@ def install_packages(module, opkg_path, packages):
install_c = 0
for package in packages:
if query_package(module, opkg_path, package):
if query_package(module, opkg_path, package) and (force != '--force-reinstall'):
continue
rc, out, err = module.run_command("%s install %s %s" % (opkg_path, force, package))