diff --git a/debget b/debget index f49ea3c..9e75bb0 100755 --- a/debget +++ b/debget @@ -42,11 +42,6 @@ # First check if apt-get is sane enough before proceeding set +e -apt-get -q2 --print-uris download "dpkg" 2>/dev/null >/dev/null -if [ $? -ne 0 ] ; then - echo "ERROR: There was an error calling apt-get. Check that the database is in a consistent state and try again" - exit 1 -fi if ! ls /var/lib/apt/lists/ |grep Release >/dev/null; then echo "ERROR: Your apt lists are empty. Update your package database" echo "using 'apt-get update'" diff --git a/debian/changelog b/debian/changelog index aab36b7..00afabb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ * Make debget a lightweight wrapper around "apt-get download". Speeds up script by up to factor 2. (Closes: #821156, #733465, #733471) + * debget: Don't check if apt-get works properly first. Speeds script up + again by up to factor 2. -- Axel Beckert Sat, 22 Apr 2017 01:48:14 +0200