mirror of
https://github.com/munki/munki.git
synced 2026-03-06 06:49:28 -06:00
add arguments check to criteria test
Checks for a single argument (installer item) as well as has_valid_install_critieria. Multiple arguments fail via other checks, zero arguments (script_options) pass for pkginfo generation.
This commit is contained in:
@@ -1131,7 +1131,8 @@ def main():
|
||||
# add user/environment metadata
|
||||
catinfo['_metadata'] = make_pkginfo_metadata()
|
||||
|
||||
if not has_valid_install_critieria(catinfo):
|
||||
if (len(arguments) == 1 and
|
||||
not has_valid_install_critieria(catinfo)):
|
||||
item = catinfo['name']
|
||||
msg = (
|
||||
"WARNING: pkginfo for '%s' contains no installation check info!\n"
|
||||
|
||||
Reference in New Issue
Block a user