mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Replaced tabbed indentation with spaces for apt module
This commit is contained in:
parent
3d28efaf7e
commit
a0f5ae8726
1 changed files with 2 additions and 2 deletions
|
@ -230,10 +230,10 @@ def package_status(m, pkgname, version, cache, state):
|
||||||
try:
|
try:
|
||||||
provided_packages = cache.get_providing_packages(pkgname)
|
provided_packages = cache.get_providing_packages(pkgname)
|
||||||
if provided_packages:
|
if provided_packages:
|
||||||
is_installed = False
|
is_installed = False
|
||||||
# when virtual package providing only one package, look up status of target package
|
# when virtual package providing only one package, look up status of target package
|
||||||
if cache.is_virtual_package(pkgname) and len(provided_packages) == 1:
|
if cache.is_virtual_package(pkgname) and len(provided_packages) == 1:
|
||||||
package = provided_packages[0]
|
package = provided_packages[0]
|
||||||
installed, upgradable, has_files = package_status(m, package.name, version, cache, state='install')
|
installed, upgradable, has_files = package_status(m, package.name, version, cache, state='install')
|
||||||
if installed:
|
if installed:
|
||||||
is_installed = True
|
is_installed = True
|
||||||
|
|
Loading…
Reference in a new issue