diff options
-rwxr-xr-x | distfiles-indexer.py | 4 |
1 files 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): |