Skip to content

Commit

Permalink
Don't find distro package for a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Oct 23, 2015
1 parent 360bbcd commit 153edb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reprozip/reprozip/tracer/linux_pkgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ def search_for_files(self, files):
# Remaining files are not from packages
self.unknown_files.update(f for f in files if f.path in requested)

def _filter(self, f):
# Directories and non-existent files
if f.path.is_dir():
self.unknown_files.add(f)
return True

return super(DpkgManager, self)._filter(f)

def _get_package_for_file(self, filename):
# This method is no longer used for dpkg: instead of querying each file
# using `dpkg -S`, we read all the list files once ourselves since it
Expand Down

0 comments on commit 153edb0

Please sign in to comment.