Codebase list rust-stfu8 / 6ae013cf-cefc-48c6-a8d9-7cb8d5834c69/main dev / list-pending-not-NEW.sh
6ae013cf-cefc-48c6-a8d9-7cb8d5834c69/main

Tree @6ae013cf-cefc-48c6-a8d9-7cb8d5834c69/main (Download .tar.gz)

list-pending-not-NEW.sh @6ae013cf-cefc-48c6-a8d9-7cb8d5834c69/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