Codebase list debian-goodies / 07c463b
debget: Use "apt-get download" instead of "apt-get --reinstall install" Main difference: no dependency resolution which may hinder downloading packages which are in conflict with installed packages (e.g. an init system or MTA which is not the currently installed one). Closes: #733465 Axel Beckert 7 years ago
2 changed file(s) with 9 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4141
4242 # First check if apt-get is sane enough before proceeding
4343 set +e
44 apt-get -q2 --print-uris --reinstall install "dpkg" 2>/dev/null >/dev/null
44 apt-get -q2 --print-uris download "dpkg" 2>/dev/null >/dev/null
4545 if [ $? -ne 0 ] ; then
4646 echo "ERROR: There was an error calling apt-get. Check that the database is in a consistent state and try again"
4747 exit 1
5555
5656 for pkgspec in $*; do
5757 set +e
58 apt-get -q2 --print-uris --reinstall install "$pkgspec" 2>/dev/null >/dev/null
58 apt-get -q2 --print-uris download "$pkgspec" 2>/dev/null >/dev/null
5959 if [ $? -ne 0 ] ; then
6060 echo "ERROR: There is no '$pkgspec' package. Sorry."
6161 echo "If you believe the package exists then consider updating your"
7070 version=`echo $version | sed -ne '$s/^.*: \(.*\).*$/\1/p'`
7171 echo "($pkgspec -> $version)"
7272 done
73 aptdata=$(apt-get -q2 --print-uris --reinstall install "$pkgspec" 2>/dev/null | grep -F "/${pkgspec}_")
73 aptdata=$(apt-get -q2 --print-uris download "$pkgspec" 2>/dev/null | grep -F "/${pkgspec}_")
7474 if [ -z "$aptdata" ] ; then
7575 echo "ERROR: No APT data returned for '$pkgspec'. Sorry."
7676 echo "This is probably because the package is in the local apt cache"
00 debian-goodies (0.71) UNRELEASED; urgency=medium
11
2 * debget (and therefore debman): Support apt-transport-tor i.e.
3 tor+http:// and tor+https:// APT repository URLs. (Closes: #821156)
2 * debget (and therefore also debman):
3 + Support apt-transport-tor i.e. tor+http:// and tor+https:// APT
4 repository URLs. (Closes: #821156)
5 + Replace "apt-get --print-uris --reinstall install" with "apt-get
6 --print-uris download" to avoid dependency resolution before
7 printing URLs. (Closes: #733465)
48
59 -- Axel Beckert <abe@debian.org> Sat, 22 Apr 2017 01:48:14 +0200
610