From 0e609ca1086c17b04450603d4a925cc9532d9da8 Mon Sep 17 00:00:00 2001 From: Robert Buchholz Date: Tue, 26 Aug 2008 14:06:30 +0200 Subject: Bugfix: Actually use -P directory, and correct Exception handling --- distfiles-indexer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distfiles-indexer.py b/distfiles-indexer.py index 5d14915..c9128b3 100755 --- a/distfiles-indexer.py +++ b/distfiles-indexer.py @@ -37,7 +37,7 @@ class ArchiveInfo: def write_info(self, outfiledir): - outfilename = "%s.%s.INDEX" % (self.basename, self.mtime) + outfilename = "%s/%s.%s.INDEX" % (outfiledir, self.basename, self.mtime) if os.path.exists(outfilename): return @@ -151,7 +151,7 @@ def main(): try: a = ArchiveInfo(infilename) filename = a.write_info(outdir) - except Error, e: + except Exception, e: print infilename, " could not be opened: %s" % str(e) def usage(programname): -- cgit v1.2.3-65-gdbad