Skip to content

Commit 1554d21

Browse files
committed
Resolve symlinks before calling dpkg-query -S increments the number of files found
1 parent b21f4b6 commit 1554d21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

appimagebuilder/generator/apt_recipe_generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def get_sources():
3838

3939
@staticmethod
4040
def search_packages(paths):
41+
# Resolve symlinks before calling dpkg-query -S increments the number of files found
42+
paths = [os.path.realpath(path) for path in paths]
43+
4144
dpkg_query = DpkgQuery()
4245
packages, missing = dpkg_query.search(paths)
4346
return packages, missing

0 commit comments

Comments
 (0)