From 9afbbb72de1d89aae835d5581cef09741ff3fd10 Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Sat, 21 Nov 2020 23:23:45 +0000 Subject: [PATCH] update-whatprovides-db.sh: avoid '.' entries in db (#10) --- update-whatprovides-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-whatprovides-db.sh b/update-whatprovides-db.sh index d8256fc..8c06f78 100755 --- a/update-whatprovides-db.sh +++ b/update-whatprovides-db.sh @@ -9,7 +9,7 @@ set -e -u : "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}" list_files() { - dpkg-deb -c "${1}" | grep -o "/data/data/com\.termux/files/.\+" \ + dpkg-deb -c "${1}" | grep -o "${TERMUX_PREFIX//./\\.}/.\+" \ | sed -E 's@(.*) ->..*@\1@g;s@/$@@g' \ | xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" -- }