mirror of
https://github.com/munki/munki.git
synced 2026-01-06 22:49:58 -06:00
Fix for issue #1179
This commit is contained in:
@@ -437,7 +437,9 @@ def parsePkgRefs(filename, path_to_pkg=None):
|
||||
for (key, pkgref) in pkgref_dict.items():
|
||||
if 'file' in pkgref:
|
||||
if os.path.exists(pkgref['file']):
|
||||
info.extend(getReceiptInfo(pkgref['file']))
|
||||
receipts = getReceiptInfo(
|
||||
pkgref['file']).get("receipts", [])
|
||||
info.extend(receipts)
|
||||
continue
|
||||
if 'version' in pkgref:
|
||||
if 'file' in pkgref:
|
||||
@@ -512,7 +514,8 @@ def getFlatPackageInfo(pkgpath):
|
||||
|
||||
if not receiptarray:
|
||||
display.display_warning(
|
||||
'No valid Distribution or PackageInfo found.')
|
||||
'No receipts found in Distribution or PackageInfo files within '
|
||||
'the package.')
|
||||
|
||||
productversion = None
|
||||
for toc_entry in [item for item in toc
|
||||
|
||||
Reference in New Issue
Block a user