feather/contrib/build-deps/get-packages.sh

25 lines
557 B
Bash
Raw Normal View History

2021-06-18 22:06:57 +00:00
#!/usr/bin/env bash
2021-08-29 18:07:19 +00:00
base_uri="http://archive.ubuntu.com/ubuntu/dists"
arch="amd64"
if [ "$(uname -m)" = "aarch64" ]; then
base_uri="http://ports.ubuntu.com/ubuntu-ports/dists"
arch="arm64"
fi
2021-06-18 22:06:57 +00:00
for target in bionic bionic-updates bionic-security
do
mkdir "$target"
pushd "$target"
2021-08-29 18:07:19 +00:00
target_uri="$base_uri/$target/"
2021-06-18 22:06:57 +00:00
wget "$target_uri/Release"
wget "$target_uri/Release.gpg"
for repo in main multiverse restricted universe
do
mkdir "$repo"
pushd "$repo"
2021-08-29 18:07:19 +00:00
wget "$target_uri/$repo/binary-$arch/Packages.xz"
2021-06-18 22:06:57 +00:00
popd
done
popd
done