Codebase list rust-libslirp / 22407148-c865-4094-9c27-0819eaf4e087/main dev / filter-package-in-debian.sh
22407148-c865-4094-9c27-0819eaf4e087/main

Tree @22407148-c865-4094-9c27-0819eaf4e087/main (Download .tar.gz)

filter-package-in-debian.sh @22407148-c865-4094-9c27-0819eaf4e087/mainraw · history · blame

#!/bin/bash
# Filter list of packages by whether they're in Debian.
# You need to have an up-to-date APT cache for Debian unstable.
set -e

while read pkg ver; do
	pkg="${pkg//_/-}"
	numpkg="$(apt-cache showsrc rust-$pkg 2>/dev/null | grep "^Version: ${ver:+${ver}$}" | wc -l)"
	echo "$pkg $ver $numpkg"
done