Package list debian-goodies / d12b243
debget: Don't check if apt-get works properly first Speeds script up again by up to factor 2, i.e. by up to factor 4 together with the previous commit. Axel Beckert 4 years ago
2 changed file(s) with 2 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 download "dpkg" 2>/dev/null >/dev/null
45 if [ $? -ne 0 ] ; then
46 echo "ERROR: There was an error calling apt-get. Check that the database is in a consistent state and try again"
47 exit 1
48 fi
4944 if ! ls /var/lib/apt/lists/ |grep Release >/dev/null; then
5045 echo "ERROR: Your apt lists are empty. Update your package database"
5146 echo "using 'apt-get update'"
11
22 * Make debget a lightweight wrapper around "apt-get download". Speeds up
33 script by up to factor 2. (Closes: #821156, #733465, #733471)
4 * debget: Don't check if apt-get works properly first. Speeds script up
5 again by up to factor 2.
46
57 -- Axel Beckert <abe@debian.org> Sat, 22 Apr 2017 01:48:14 +0200
68