Codebase list rust-stfu8 / 6e1dc619-f64a-4874-a5fd-720b3a3cf6f7/main dev / filter-package-in-debian.sh
6e1dc619-f64a-4874-a5fd-720b3a3cf6f7/main

Tree @6e1dc619-f64a-4874-a5fd-720b3a3cf6f7/main (Download .tar.gz)

filter-package-in-debian.sh @6e1dc619-f64a-4874-a5fd-720b3a3cf6f7/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