Fix a flaw with getting rid of comments in the manifest.

Make the code block to get the package list more readable
This commit is contained in:
jkeating@reducto.boston.redhat.com 2007-02-15 21:37:30 -05:00 committed by Jesse Keating
parent 7531b652bd
commit 528b566ec2

6
pungi
View File

@ -172,7 +172,11 @@ if __name__ == '__main__':
print >> sys.stderr, "pungi: No such file:\'%s\'" % manifest
sys.exit(1)
pkglist = [l.strip() for l in manifestfile.readlines() if not l.startswith('#')]
pkglist = []
for line in manifestfile.readlines():
line = line.strip()
if not line.startswith('#'):
pkglist.append(line)
manifestfile.close()
return pkglist