~laney/ubuntu-archive-tools/r-a-r-excuses-xz

« back to all changes in this revision

Viewing changes to cleanup-NBS-for-EOL

  • Committer: Steve Langasek
  • Date: 2020-06-17 16:16:26 UTC
  • mfrom: (1306.2.3 clean-NBS-for-EOL)
  • Revision ID: vorlon@debian.org-20200617161626-z88xa97bsmv2fhcz
MergeĀ lp:~vorlon/ubuntu-archive-tools/clean-NBS-for-EOL

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
DIST="$1"
 
5
 
 
6
if [ -z "$DIST" ]; then
 
7
        echo "Usage: $0 DIST"
 
8
        exit 1
 
9
fi
 
10
wget -O - -q \
 
11
        https://people.canonical.com/~ubuntu-archive/proposed-migration/"$DIST"/update_output.txt \
 
12
| sed -e'1,/Removing packages left in testing/d; /^[^[:space:]]/,$d; s/^[[:space:]]*//; s/:.*//' \
 
13
| grep -E '^linux|-di$' \
 
14
| while read pkgs; do
 
15
        remove-package -b -s "$DIST"-updates -m NBS -y $pkgs || true
 
16
        remove-package -b -s "$DIST"-security -m NBS -y $pkgs || true
 
17
done
 
18