Codebase list rust-libslirp / c3b903fa-d540-407f-aadc-556c76f435da/main dev / filter-package-in-debian.sh
c3b903fa-d540-407f-aadc-556c76f435da/main

Tree @c3b903fa-d540-407f-aadc-556c76f435da/main (Download .tar.gz)

filter-package-in-debian.sh @c3b903fa-d540-407f-aadc-556c76f435da/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