From b4cd04ac1b7772f9a82ac82967c3d3e37e0c4ce5 Mon Sep 17 00:00:00 2001 From: josch Date: Wed, 7 Jan 2015 21:53:58 +0100 Subject: [PATCH] modify regex to also match on empty directories as these also activate file triggers --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 9d3fca3..a607068 100755 --- a/setup.sh +++ b/setup.sh @@ -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"