genpkgmetadata.py

[email protected] (Seth Vidal)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 genpkgmetadata.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9c282847054bec8a82224a6bce366b2312536d3f
Author: Seth Vidal <[email protected]>
Date:   Thu Jan 17 22:06:04 2008 -0500

    make sure empty directories still work

diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index 6bb894a..a43b281 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
@@ -110,16 +110,16 @@ def parseArgs(args, conf):
     directory = directories[0]
     conf.directory = directory
     conf.directories = directories
-    
+
+    lst = []
     if conf.pkglist:
-        lst = []
         pfo = open(conf.pkglist, 'r')
         for line in pfo.readlines():
             line = line.replace('\n', '')
             lst.append(line)
         pfo.close()
             
-        conf.pkglist = lst
+    conf.pkglist = lst
 
     return conf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.