summaryrefslogtreecommitdiffstats
path: root/bin/find_dpkg_trigger_cycles.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-11-21bin/find_dpkg_trigger_cycles.sh: use apt-get instead of apt in scripts ↵Johannes 'josch' Schauer1-1/+1
because the latter has no stable scripting interface Signed-off-by: Holger Levsen <holger@layer-acht.org>
2017-11-20bin/find_dpkg_trigger_cycles.sh: apt requires an absolute pathJohannes 'josch' Schauer1-1/+1
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2017-11-20bin/find_dpkg_trigger_cycles.sh: Use true tmp dir and cleanup at the endJohannes 'josch' Schauer1-8/+7
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2017-11-18bin/find_dpkg_trigger_cycles.sh: update for Debian StretchJohannes 'josch' Schauer1-16/+44
- Update from apt-file 2 to apt-file 3 - the --cache and --sources-list are replaced by --config-file - "apt-file update" is replaced by "apt update" - apt config gains Acquire::IndexTargets section - Make use of features of more recent apt version - use sources.list in deb822 format - instead of relying on an uncompressed Packages file with a fixed pattern in /var/lib/apt/lists/, use "apt-get indextargets" in connection with "apt-helper cat-file" Interface change: Before, the script allowed either a suite name or codename to specify the Debian release to check. Now, the script is limited to the codename (jessie, stretch, buster, ...). The reason is, that we want to make sure to grab the right Packages file using "apt-get indextargets" and for that we need to specify the suite or the codename. To avoid having to implement a mapping mechanism, the script now is limited to working with codenames. Signed-off-by: Holger Levsen <holger@layer-acht.org>
2017-03-31bin/find_dpkg_trigger_cycles.sh: ignore dependencies on Essential:yes packagesJohannes 'josch' Schauer1-3/+12
The implicit dependencies of all binary packages on all Essential:yes packages cannot result in a trigger cycle for two reasons: 1. Policy §3.8 says "Since dpkg will not prevent upgrading of other packages while an `essential' package is in an unconfigured state" which implies that because triggers check the possibility to process or not triggers based on normal dpkg dependency resolution, then essential does not apply. 2. The trigger documentation in /usr/share/doc/dpkg-dev/triggers.txt.gz does not mention Essential at all and when talking about dependency satisfiability it only refers to Depends field. Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2016-12-20add newlines to improve readabilityHolger Levsen1-0/+2
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2016-12-20improve language: s#fitting#certain#gHolger Levsen1-2/+2
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2016-12-20bin/find_dpkg_trigger_cycles.sh: Also point to ↵Johannes 'josch' Schauer1-2/+6
/usr/share/doc/dpkg-dev/triggers.txt.gz Signed-off-by: Holger Levsen <holger@layer-acht.org>
2016-12-20bin/find_dpkg_trigger_cycles.sh: Add solution to trigger cycle problemsJohannes 'josch' Schauer1-0/+8
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2016-12-20bin/find_dpkg_trigger_cycles.sh: improve help textJohannes 'josch' Schauer1-24/+44
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2016-02-11bin/find_dpkg_trigger_cycles.sh: improve curl error reportingJohannes 'josch' Schauer1-1/+3
2016-02-11bin/find_dpkg_trigger_cycles.sh: add comment to explain curl usage in pipelineJohannes 'josch' Schauer1-0/+9
2016-02-11bin/find_dpkg_trigger_cycles.sh: fix output formatJohannes 'josch' Schauer1-1/+1
2016-02-10bin/find_dpkg_trigger_cycles.sh: do not use 'apt-get download --print-uris' ↵Johannes 'josch' Schauer1-3/+8
because that will fail if only one package on the command line is not known to apt which can easily happen in unstable
2015-12-16always use mktemp with '-t -XXXX'Holger Levsen1-1/+1
2015-09-16use exec to start abort.sh to invoke it from within the current job runHolger Levsen1-1/+1
2015-08-02abort job if the input aint rightHolger Levsen1-1/+1
2015-06-17bin/find_dpkg_trigger_cycles.sh: fix serious bug that resulted in no results ↵josch1-4/+8
being produced
2015-04-24bin/find_dpkg_trigger_cycles.sh: make work with set -ejosch1-5/+7
- curl is allowed to exit with status 0 or 23 - grep is not allowed to exit with exit status 2
2015-04-24find_dpkg_trigger_cycles.sh: use APT_CONFIG environment variable instead of ↵josch1-9/+16
commandline option - using commandline options does not work reliably because commandline options are parsed last and thus many settings will not take effect - see apt.conf(5) for the order in which configuration file parameters are parsed by apt
2015-04-22also retry 3 timesHolger Levsen1-2/+2
2015-04-22bin/find_dpkg_trigger_cycles.sh: set -o pipefail and set -ejosch1-0/+4
2015-03-28find_dpkg_trigger_cycles: store all temp files in ↵josch1-1/+7
/tmp.dpkg_trigger_cycles.XXXXXXXXXX and remove using a trap on EXIT
2015-02-16remove FIXME, this is nothing to be fixed...Holger Levsen1-2/+0
2015-02-07bin/find_dpkg_trigger_cycles.sh: wait 10 seconds before retryjosch1-1/+1
2015-02-07bin/find_dpkg_trigger_cycles.sh: print curl exit code and exit after failurejosch1-1/+1
2015-02-03bin/find_dpkg_trigger_cycles.sh: print error if curl failsjosch1-1/+1
2015-01-28bin/find_dpkg_trigger_cycles.sh: make sure the activated path is either ↵josch1-1/+1
followed by a slash or the line end
2015-01-07bin/find_dpkg_trigger_cycles.sh: modify regex to also match on empty ↵josch1-1/+1
directories as these also activate file triggers
2015-01-05bin/find_dpkg_trigger_cycles.sh: disable curl globbingjosch1-1/+1
2015-01-05bin/find_dpkg_trigger_cycles.sh: store result and temporary files in suite ↵josch1-30/+30
specific directory
2015-01-05bin/find_dpkg_trigger_cycles.sh: support new binarycontrol.d.n layoutjosch1-1/+1
2015-01-04bin/find_dpkg_trigger_cycles.sh: wc output the filename if it's not given on ↵josch1-2/+2
stdin (round #2)
2015-01-04bin/find_dpkg_trigger_cycles.sh: wc output the filename if it's not given on ↵josch1-4/+4
stdin
2015-01-04bin/find_dpkg_trigger_cycles.sh: do integer, not string comparisonjosch1-4/+4
2015-01-04bin/find_dpkg_trigger_cycles.sh: pimp the output with a summaryjosch1-21/+49
2015-01-04bin/find_dpkg_trigger_cycles.sh: trigger -> trigger cyclejosch1-2/+2
2015-01-04bin/find_dpkg_trigger_cycles.sh: cat result-file result-explicitjosch1-1/+24
2015-01-03disable debuggingHolger Levsen1-1/+1
2015-01-03enable debuggingHolger Levsen1-1/+1
2015-01-01find_dpkg_trigger_cycles: prepare for being run inside a jessie chrootjosch1-3/+1
- drop python-arpy hack
2014-12-26bin/find_dpkg_trigger_cycles.sh: make temporary directory, not filejosch1-1/+1
2014-12-26bin/dpkg_sid_find_trigger_cycles - use temporary directoryjosch1-9/+9
2014-12-25add FIXME entry so we dont forgetHolger Levsen1-0/+2
2014-12-25Temporary ugly hack until Jenkins runs Debian Jessiejosch1-1/+1
- workaround for `dpkg-deb --ctrl-tarfile /dev/stdin` not being available in Wheezy - Python arpy was the only implementation I found which allows to read an ar archive from standard input without a filename (thus preserving the ability to quit a package download early) - since tar cannot transparently decompress content from standard input (bug #773912), this has to be done in Python, too - this is also ugly because Python does not work well for oneliners - please revert this commit as soon as Jenkins run Jessie because dpkg is also faster than Python arpy
2014-12-16find_dpkg_trigger_cycles.sh: force bash, common-functions.sh needs itHolger Levsen1-1/+1
2014-12-16find_dpkg_trigger_cycles: update included READMEHolger Levsen1-3/+3
2014-12-16find_dpkg_trigger_cycles.sh: use bin/common-functions.sh and common variablesHolger Levsen1-4/+4
2014-12-16move setup.sh to bin/find_dpkg_trigger_cycles.shHolger Levsen1-0/+243