Commits

Jakub Wilk committed 52f390b

diff-Contents-gz: don't take directory name into account.

  • Participants
  • Parent commits eb7d27f

Comments (0)

Files changed (1)

 data = collections.defaultdict(new_package_dict)
 
 for filename in sys.argv[1:]:
-    basename, _ = os.path.splitext(filename)
+    basename, _ = os.path.splitext(os.path.basename(filename))
     arch = Arch(basename.split('-', 1)[1])
     print('Reading {}'.format(filename), file=sys.stderr)
     with gzip.open(filename) as file: