Package list debian-goodies / e93c801
debget: Remove all "set -e" and "set +e": No more necessary Axel Beckert 4 years ago
2 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh -e
0 #!/bin/sh
11
22 # debget - Fetch a .deb for a package in APT's database
33
4040 esac
4141
4242 # First check if apt-get is sane enough before proceeding
43 set +e
4443 if ! ls /var/lib/apt/lists/ |grep Release >/dev/null; then
4544 echo "ERROR: Your apt lists are empty. Update your package database"
4645 echo "using 'apt-get update'"
4746 fi
48 set -e
4947
5048 error=0
5149 for pkgspec in $*; do
52 set +e
5350 apt-get download "$pkgspec"
5451 if [ $? -ne 0 ] ; then
5552 echo "If you believe the package exists then consider updating your"
33 script by up to factor 2. (Closes: #821156, #733465, #733471)
44 * debget: Don't check if apt-get works properly first. Speeds script up
55 again by up to factor 2.
6 * debget: Remove all "set -e" and "set +e": No more necessary.
67
78 -- Axel Beckert <abe@debian.org> Sat, 22 Apr 2017 01:48:14 +0200
89