From 528b566ec2aa2d6275d18df7c13eb8b5b52e4ce9 Mon Sep 17 00:00:00 2001 From: jkeating@reducto.boston.redhat.com <> Date: Feb 16 2007 02:37:30 +0000 Subject: Fix a flaw with getting rid of comments in the manifest. Make the code block to get the package list more readable --- diff --git a/pungi b/pungi index 6ae03ce..53fd8fa 100755 --- a/pungi +++ b/pungi @@ -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