Codebase list rust-stfu8 / 4c128e93-5432-4178-b3c8-3e176ad32f81/main dev / filter-package-in-debian.sh
4c128e93-5432-4178-b3c8-3e176ad32f81/main

Tree @4c128e93-5432-4178-b3c8-3e176ad32f81/main (Download .tar.gz)

filter-package-in-debian.sh @4c128e93-5432-4178-b3c8-3e176ad32f81/main

e8aca34
 
 
 
 
 
 
 
 
 
#!/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