[Qa-jenkins-scm] [jenkins.debian.net] 01/01: bin/find_dpkg_trigger_cycles.sh: improve help text

Holger Levsen holger at layer-acht.org
Tue Dec 20 12:11:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit c4588d4874ccdad5b0b277b384ec760cdea9825c
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Tue Dec 20 13:00:03 2016 +0100

    bin/find_dpkg_trigger_cycles.sh: improve help text
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/find_dpkg_trigger_cycles.sh | 68 ++++++++++++++++++++++++++---------------
 1 file changed, 44 insertions(+), 24 deletions(-)

diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh
index ce78f49..4c98dde 100755
--- a/bin/find_dpkg_trigger_cycles.sh
+++ b/bin/find_dpkg_trigger_cycles.sh
@@ -300,32 +300,52 @@ if [ `wc -l < $DIRECTORY/result-explicit` -ne 0 ]; then
 	awk '{ print $1 }' $DIRECTORY/result-explicit | sort | uniq
 fi
 if [ `wc -l < $DIRECTORY/result-file` -ne 0 ]; then
-	echo ""
-	echo ""
-	echo "+----------------------------------------------------------+"
-	echo "|               file based trigger cycles                  |"
-	echo "+----------------------------------------------------------+"
-	echo ""
-	echo "# Associates binary packages with other binary packages they can form a file"
-	echo "# trigger cycle with. The first column is the binary package containing the file"
-	echo "# trigger, the second column is the file trigger, the third column is a binary"
-	echo "# package providing a path that triggers the binary package in the first column,"
-	echo "# the fourth column is the triggering path of provided by the binary package in"
-	echo "# the third column."
-	echo ""
+	cat << END
++----------------------------------------------------------+
+|               file based trigger cycles                  |
++----------------------------------------------------------+
+
+The following table has four columns A, B, C and D. The first column A shows a
+binary package which shows interested in a certain path. The second column B
+shows the path that A is interested in. The third column C is a binary package
+that A (directly or indirectly) depends on. The fourth column D shows the path
+that C provides and which is triggering A through its interest in B.
+
+The cycle is created because when C is put into the triggers-awaited state
+(because it triggers A), then it cannot satisfy dependencies until it leaves that
+state. But:
+
+ - for C to leave the triggers-awaited state, the trigger has to be resolved
+   by A, which cannot happen unless A gets configured
+ - to configure A, its dependency on C has to be resolved which cannot happen
+   unless C leaves the triggers-awaited state
+
+This creates the cycle if the packages are installed in a fitting order.
+END
 	cat $DIRECTORY/result-file
 fi
 if [ `wc -l < $DIRECTORY/result-explicit` -ne 0 ]; then
-	echo ""
-	echo ""
-	echo "+----------------------------------------------------------+"
-	echo "|               explicit trigger cycles                    |"
-	echo "+----------------------------------------------------------+"
-	echo ""
-	echo "# Associates binary packages with other binary packages they can form an explicit"
-	echo "# trigger cycle with. The first column is the binary package interested in the"
-	echo "# explicit trigger, the second column is the name of the explicit trigger, the"
-	echo "# third column is the binary package activating the trigger."
-	echo ""
+	cat << END
++----------------------------------------------------------+
+|               explicit trigger cycles                    |
++----------------------------------------------------------+
+
+The following table has three columns A, B and C. The first column A shows a
+binary package which shows interested in a certain trigger. The second column B
+shows the trigger that A is interested in. The third column C is a binary
+package that A (directly or indirectly) depends on and which explicitly
+activates the trigger from column B.
+
+The cycle is created because when C is put into the triggers-awaited state
+(because it triggers A), then it cannot satisfy dependencies until it leaves that
+state. But:
+
+ - for C to leave the triggers-awaited state, the trigger has to be resolved
+   by A, which cannot happen unless A gets configured
+ - to configure A, its dependency on C has to be resolved which cannot happen
+   unless C leaves the triggers-awaited state
+
+This creates the cycle if the packages are installed in a fitting order.
+END
 	cat $DIRECTORY/result-explicit
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list