modify regex to also match on empty directories as these also activate file triggers

main
josch 9 years ago
parent 303a1fb33d
commit b4cd04ac1b

@ -85,7 +85,7 @@ cat $DIRECTORY/interested-file | while read pkg ttype ipath; do
$HOME/.chdist/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_binary-${ARCH}_Packages \
| awk '/^package:/ { print $2 }' \
| apt-file $APT_FILE_OPTS show -F --from-file - \
| sed -ne "s ^\([^:]\+\):\s\+\(${ipath}/.*\) \1\t\2 p" \
| sed -ne "s ^\([^:]\+\):\s\+\(${ipath}\) \1\t\2 p" \
| while read dep cpath; do
[ "$pkg" != "$dep" ] || continue
echo "$pkg $ipath $dep $cpath"

Loading…
Cancel
Save