summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjosch <j.schauer@email.de>2015-06-17 08:16:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-17 10:38:01 +0200
commitdde88d3b028c01de80f025c6bdf2f7303f9226e8 (patch)
treef0c602ee452bb3534d81e6418e1deb481c992321
parentcac3dedcc2f8a50dae6c7b5d4688ac0d7e457484 (diff)
downloadjenkins.debian.net-dde88d3b028c01de80f025c6bdf2f7303f9226e8.tar.xz
bin/find_dpkg_trigger_cycles.sh: fix serious bug that resulted in no results being produced
-rwxr-xr-xbin/find_dpkg_trigger_cycles.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh
index 2d17b1e3..be25f053 100755
--- a/bin/find_dpkg_trigger_cycles.sh
+++ b/bin/find_dpkg_trigger_cycles.sh
@@ -182,16 +182,20 @@ curl --retry 3 --retry-delay 10 --globoff "http://binarycontrol.debian.net/?q=&p
fi
# find all triggers that are either interest or interest-await
# and which are file triggers (start with a slash)
- egrep "^\s*interest(-await)?\s+/" "$tmpdir/triggers" || [ "$?" -ne 2 ] | while read line; do
+ { egrep "^\s*interest(-await)?\s+/" "$tmpdir/triggers" || [ "$?" -ne 2 ]; } \
+ | while read line; do
echo "$pkg $line"
done >> $DIRECTORY/interested-file
- egrep "^\s*interest(-await)?\s+[^/]" "$tmpdir/triggers" || [ "$?" -ne 2 ] | while read line; do
+ { egrep "^\s*interest(-await)?\s+[^/]" "$tmpdir/triggers" || [ "$?" -ne 2 ]; } \
+ | while read line; do
echo "$pkg $line"
done >> $DIRECTORY/interested-explicit
- egrep "^\s*activate(-await)?\s+/" "$tmpdir/triggers" || [ "$?" -ne 2 ] | while read line; do
+ { egrep "^\s*activate(-await)?\s+/" "$tmpdir/triggers" || [ "$?" -ne 2 ]; } \
+ | while read line; do
echo "$pkg $line"
done >> $DIRECTORY/activated-file
- egrep "^\s*activate(-await)?\s+[^/]" "$tmpdir/triggers" || [ "$?" -ne 2 ] | while read line; do
+ { egrep "^\s*activate(-await)?\s+[^/]" "$tmpdir/triggers" || [ "$?" -ne 2 ]; } \
+ | while read line; do
echo "$pkg $line"
done >> $DIRECTORY/activated-explicit
rm -r "$tmpdir"