10
PATH="$ROOT/bin:$PATH"
15
echo "Usage: refresh-packages -d DIST -A ARCH [--scratch]"
22
eval set -- "$(getopt -o d:A: --long help,scratch -n refresh-packages -- "$@")"
52
if [ -z "$DIST" ] || [ -z "$ARCH" ]; then
57
WORKDIR="$ROOT/tmp/archive/ubuntu/workdir"
58
UPLOADDIR="$ROOT/output/$ARCH/upload/$DIST"
63
keep-latest source "../archive/$DIST/main/source/Sources.gz" >"Sources.$DIST"
65
apt-ftparchive packages . >Packages
68
wanna-build -d "$DIST" -A "$ARCH" -l all | \
69
grep '^.*/.*_.*: ' | cut -d: -f1 | cut -d/ -f2 | \
70
xargs wanna-build -d "$DIST" -A "$ARCH" --forget
74
-v --Pas "$ROOT/pas/Packages-arch-specific" --merge-v3 \
75
-d "$DIST" -A "$ARCH" \
76
Packages . "$WORKDIR/Sources.$DIST" .