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

This commit is contained in:
josch 2015-01-07 21:53:58 +01:00
parent 303a1fb33d
commit b4cd04ac1b

View file

@ -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"