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:
parent
7531b652bd
commit
528b566ec2
6
pungi
6
pungi
@ -172,7 +172,11 @@ if __name__ == '__main__':
|
|||||||
print >> sys.stderr, "pungi: No such file:\'%s\'" % manifest
|
print >> sys.stderr, "pungi: No such file:\'%s\'" % manifest
|
||||||
sys.exit(1)
|
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()
|
manifestfile.close()
|
||||||
return pkglist
|
return pkglist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user