From f641147881265726fc3d7dad759f77d7049ff254 Mon Sep 17 00:00:00 2001 From: josch Date: Tue, 27 Jan 2015 07:24:27 +0100 Subject: bin/find_dpkg_trigger_cycles.sh: make sure the activated path is either followed by a slash or the line end --- bin/find_dpkg_trigger_cycles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/find_dpkg_trigger_cycles.sh') 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" -- cgit v1.2.3-54-g00ecf