summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjosch <j.schauer@email.de>2015-01-27 07:24:27 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-28 10:52:57 +0100
commitf641147881265726fc3d7dad759f77d7049ff254 (patch)
tree6b37a5f0a040c0153d21fe70288acdfbdc1366eb /bin
parenta50275c5dd2e1647c65d385134d359932a0384f9 (diff)
downloadjenkins.debian.net-f641147881265726fc3d7dad759f77d7049ff254.tar.xz
bin/find_dpkg_trigger_cycles.sh: make sure the activated path is either followed by a slash or the line end
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find_dpkg_trigger_cycles.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh
index 65e88942..87d2bdc8 100755
--- a/bin/find_dpkg_trigger_cycles.sh
+++ b/bin/find_dpkg_trigger_cycles.sh
@@ -193,7 +193,7 @@ cat $DIRECTORY/interested-file | while read pkg ttype ipath; do
$DIRECTORY/var/lib/apt/lists/*_dists_${DIST}_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"