mirror of
https://github.com/munki/munki.git
synced 2026-04-25 22:40:46 -05:00
Fix for <None> nodeValues in distribution files -- affects Apple Software Updates. Problem first encountered in iTunes 10.4 update.
git-svn-id: http://munki.googlecode.com/svn/trunk@1242 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -296,9 +296,10 @@ def get_pkgrefs(xml_element):
|
||||
ref.attributes['onConclusion'].value
|
||||
if ref.firstChild:
|
||||
pkgfile = ref.firstChild.nodeValue
|
||||
pkgfile = os.path.basename(pkgfile).lstrip('#./')
|
||||
if pkgfile:
|
||||
pkg['package_file'] = pkgfile
|
||||
pkgfile = os.path.basename(pkgfile).lstrip('#./')
|
||||
if pkgfile:
|
||||
pkg['package_file'] = pkgfile
|
||||
pkgs.append(pkg)
|
||||
return pkgs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user