mirror of
https://github.com/helixarch/debtap
synced 2024-11-22 10:20:25 +01:00
Implements armv7l architecture
This commit is contained in:
parent
4daa9a1c4d
commit
f3a2001b32
14
debtap
14
debtap
|
@ -39,11 +39,23 @@ elif [[ "$1" == "-u" ]] || [[ "$1" = "--u" ]] || [[ "$1" == "-update" ]] || [[ "
|
||||||
_arch=i386
|
_arch=i386
|
||||||
elif [[ "$(uname -m)" == "x86_64" ]]; then
|
elif [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
_arch=amd64
|
_arch=amd64
|
||||||
|
elif [[ "$(uname -m)" == "armv7l" ]]; then
|
||||||
|
_arch=armhf
|
||||||
|
else
|
||||||
|
echo -n "Unknown architecture: "; uname -m
|
||||||
|
exit 1
|
||||||
fi
|
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_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'`
|
||||||
curl -C - -f http://ftp.debian.org/debian/dists/sid/Contents-$_arch.gz > /var/cache/debtap/debian-packages-files.gz
|
curl -C - -f http://ftp.debian.org/debian/dists/sid/Contents-$_arch.gz > /var/cache/debtap/debian-packages-files.gz
|
||||||
gzip -df /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
|
case "$_arch" in
|
||||||
|
i386|amd64)
|
||||||
|
curl -C - -f http://archive.ubuntu.com/ubuntu/dists/$ubuntu_latest_development_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz
|
||||||
|
;;
|
||||||
|
armhf)
|
||||||
|
curl -C - -f http://ports.ubuntu.com/ubuntu-ports/dists/$ubuntu_latest_development_version/main/binary-$_arch/Packages.gz > /var/cache/debtap/ubuntu-packages-files.gz
|
||||||
|
;;
|
||||||
|
esac
|
||||||
gzip -df /var/cache/debtap/ubuntu-packages-files.gz
|
gzip -df /var/cache/debtap/ubuntu-packages-files.gz
|
||||||
if [[ $(echo $?) != 0 ]]; then
|
if [[ $(echo $?) != 0 ]]; then
|
||||||
echo -e "${red}Synchronization failed. Exiting...${NC}"; exit 1
|
echo -e "${red}Synchronization failed. Exiting...${NC}"; exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user