update-whatprovides-db.sh: define TERMUX_PREFIX
This commit is contained in:
parent
c372df97f6
commit
78b19eef01
|
@ -6,10 +6,12 @@
|
|||
|
||||
set -e -u
|
||||
|
||||
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
|
||||
|
||||
list_files() {
|
||||
dpkg-deb -c "${1}" | grep -o "/data/data/com\.termux/files/.\+" \
|
||||
| sed -E 's@(.*) ->..*@\1@g;s@/$@@g' \
|
||||
| xargs -rd\\n realpath -sm --relative-base=$TERMUX_PREFIX --
|
||||
| xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" --
|
||||
}
|
||||
|
||||
write_sql_script() {
|
||||
|
|
Loading…
Reference in New Issue