From b41de05d775468d32e0b2f6d74039c6dcdd195d4 Mon Sep 17 00:00:00 2001 From: helixarch Date: Sat, 23 Apr 2016 11:57:49 +0300 Subject: [PATCH] Added files via upload --- debtap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debtap b/debtap index 1694046..702a333 100755 --- a/debtap +++ b/debtap @@ -40,10 +40,10 @@ elif [[ "$1" == "-u" ]] || [[ "$1" = "--u" ]] || [[ "$1" == "-update" ]] || [[ " elif [[ "$(uname -m)" == "x86_64" ]]; then _arch=amd64 fi - ubuntu_latest_development_version=`curl -s http://packages.ubuntu.com | grep option | gawk -F '=' '{print $2}' | gawk '{print $1}' | grep -v option | tac | sed -n 2'{p;q;}' | sed s'/\("\|-updated\|-backports\)//g'` + ubuntu_latest_stable_version=`curl -s http://packages.ubuntu.com | grep option | gawk -F '=' '{print $2}' | gawk '{print $1}' | grep -v option | tac | sed -n 3'{p;q;}' | sed s'/\("\|-updated\|-backports\)//g'` curl -C - -f http://ftp.debian.org/debian/dists/sid/main/Contents-$_arch.gz > /var/cache/debtap/debian-packages-files.gz gzip -df /var/cache/debtap/debian-packages-files.gz - curl -C - -f http://archive.ubuntu.com/ubuntu/dists/$ubuntu_latest_development_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz + curl -C - -f http://archive.ubuntu.com/ubuntu/dists/$ubuntu_latest_stable_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz gzip -df /var/cache/debtap/ubuntu-packages-files.gz if [[ $(echo $?) != 0 ]]; then echo -e "${red}Synchronization failed. Exiting...${NC}"; exit 1