More tweaking to the parsing of Apple Software Update .dist files to extract descriptions.

git-svn-id: http://munki.googlecode.com/svn/trunk@722 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-09-03 21:38:49 +00:00
parent b742e4fbb0
commit a061031585
+7 -1
View File
@@ -216,13 +216,19 @@ def parseDist(filename):
line = line[line.find("'")+1:]
if keep:
# replace escaped single quotes
line = line.replace("\\'","'")
if line == "';":
# we're done
break
elif line.endswith("';"):
# done
description += line[0:-2]
break
else:
# append the line to the description
description += line + "\n"
return title, vers, description