pacman.py: use os_family grain to assign as pkg virtual module

This is a more future-proof method, it'll keep us from continuing to
update pacman.py each time we add another Arch derivative to the Arch
os_family.
This commit is contained in:
Erik Johnson 2016-09-19 22:19:35 -05:00
parent 5d632dbfca
commit b0069ad0d8

View file

@ -36,7 +36,7 @@ def __virtual__():
'''
Set the virtual pkg module if the os is Arch
'''
if __grains__['os'] in ('Arch', 'Arch ARM', 'Antergos', 'ManjaroLinux'):
if __grains__['os_family'] == 'Arch':
return __virtualname__
return (False, 'The pacman module could not be loaded: unsupported OS family.')