base
This commit is contained in:
parent
e9f8d9a714
commit
3e77434882
21 changed files with 1549 additions and 0 deletions
25
deb.fix.sh
Executable file
25
deb.fix.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#! /usr/bin/env bash
|
||||
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||
ROOT="$(dirname "${FILE}")"
|
||||
|
||||
ERROR='→ ERROR! ERROR! ERROR! ←'
|
||||
DISTS=(
|
||||
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
||||
)
|
||||
MISSING='Contents-all.gz'
|
||||
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
||||
|
||||
DEBIAN_ROOT='debian/dists'
|
||||
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
||||
REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
|
||||
|
||||
for dist in "${DISTS[@]}" ; do
|
||||
for section in "${SECTIONS[@]}" ; do
|
||||
cd "${LOCAL_ROOT}/${dist}/${section}"
|
||||
rm --force "${MISSING}"
|
||||
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &> /dev/null
|
||||
if [ ${?} -ne 0 ] ; then
|
||||
echo "${ERROR}"
|
||||
fi
|
||||
done
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue