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:
Greg Neagle
2011-07-20 22:03:25 +00:00
parent 916b67b153
commit 259efe634f
+3 -2
View File
@@ -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