fix querying symlinks

This commit is contained in:
Benjamin Elder
2022-05-12 14:28:17 -07:00
parent 701ef10b5f
commit 507ff70b63
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ file_to_package() {
# `dpkg-query --search $file-pattern` outputs lines with the format: "$package: $file-path"
# where $file-path belongs to $package
# https://manpages.debian.org/jessie/dpkg/dpkg-query.1.en.html
dpkg-query --search "${1}" | cut -d':' -f1
dpkg-query --search "$(realpath "${1}")" | cut -d':' -f1
}
# package_to_copyright gives the path to the copyright file for the package $1