]> git.proxmox.com Git - debcargo-conf.git/blame - dev/filter-package-in-debian.sh
ssh2 - new upstream release.
[debcargo-conf.git] / dev / filter-package-in-debian.sh
CommitLineData
e8aca343
XL
1#!/bin/bash
2# Filter list of packages by whether they're in Debian.
3# You need to have an up-to-date APT cache for Debian unstable.
4set -e
5
6while read pkg ver; do
7 pkg="${pkg//_/-}"
8 numpkg="$(apt-cache showsrc rust-$pkg 2>/dev/null | grep "^Version: ${ver:+${ver}$}" | wc -l)"
9 echo "$pkg $ver $numpkg"
10done