mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user