From 1f058ffdc3181ba362ffedc0329c2abd38676317 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Mon, 24 Nov 2014 19:20:12 -0800 Subject: [PATCH] Don't check installeritem path if we are importing an Apple metadata item. --- code/client/munkiimport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/munkiimport b/code/client/munkiimport index a08ff9d3..42e0564f 100755 --- a/code/client/munkiimport +++ b/code/client/munkiimport @@ -979,7 +979,7 @@ def main(): if options.subdirectory == '': pkgs_path = os.path.join(REPO_PATH, 'pkgs') - if installer_item.startswith(pkgs_path) and not APPLEMETADATA: + if not APPLEMETADATA and installer_item.startswith(pkgs_path): # the installer item is already in the repo. # use its relative path as the subdirectory installer_item_dirpath = os.path.dirname(installer_item)