Codebase list rust-stfu8 / 0c5da637-0e95-4c70-8a4a-cbf8ef91d475/main dev / list-pending-not-NEW.sh
0c5da637-0e95-4c70-8a4a-cbf8ef91d475/main

Tree @0c5da637-0e95-4c70-8a4a-cbf8ef91d475/main (Download .tar.gz)

list-pending-not-NEW.sh @0c5da637-0e95-4c70-8a4a-cbf8ef91d475/mainraw · history · blame

#!/bin/bash
# List pending branches that we have, but that are not in NEW.
# You might find it also useful to pipe the output of this into filter-package-in-debian.sh
set -e

git fetch origin --prune
comm -13 \
 <(curl -s https://ftp-master.debian.org/new.html | \
   grep '<td class="package">rust-' | \
   sed -nre 's/.*\brust-([-A-Za-z0-9.]+)\b.*/\1/gp' | \
   sort) \
 <(git branch --list -r 'origin/pending-*' --format='%(refname)' | \
   sed -e 's,refs/remotes/origin/pending-,,g' | \
   sort) | \
while read x; do
	echo $x $(git show "origin/pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
done