Also allow the apt module to use package or name as an alias for 'pkg'

This commit is contained in:
Michael DeHaan 2012-04-11 20:45:14 -04:00
parent 6ab8497a9a
commit 9d08eefa9a

2
apt
View file

@ -113,7 +113,7 @@ for x in items:
params[k] = v params[k] = v
state = params.get('state','installed') state = params.get('state','installed')
package = params.get('pkg', None) package = params.get('pkg', params.get('package', params.get('name', None)))
update_cache = params.get('update-cache', 'no') update_cache = params.get('update-cache', 'no')
purge = params.get('purge', 'no') purge = params.get('purge', 'no')