Commit 01d177e5 authored by Cyril Brulebois's avatar Cyril Brulebois

Add xsf-list-udebs script.

It makes it trivial to keep track of the packages we maintain and which
ship udebs. We probably should be keeping an eye on the size of these
udebs.
parent 99de11de
#!/bin/sh
# © 2011 Cyril Brulebois <kibi@debian.org>
#
# apt-cache can't really help since one usually doesn't specify
# main/debian-installer in ones sources.list
set -e
# Define some defaults, which can be overriden through env variables:
MIRROR=${MIRROR:-ftp.debian.org}
ARCH=${ARCH:-i386}
DIST=${DIST:-unstable}
ADDRESS=${ADDRESS:-debian-x@lists.debian.org}
# Take an optional single parameter:
type=$1
case $type in
"-s") type=Source;;
*) type=Package;;
esac
# Make sure dctrl-tools is installed:
if ! which grep-dctrl >/dev/null 2>&1; then
echo "E: grep-dctrl tool missing. dctrl-tools package not installed?" >&2
exit 1
fi
# Fetch, uncompress, and grep:
echo "Listing $type for packages maintained by $ADDRESS" >&2
wget -q http://$MIRROR/debian/dists/$DIST/main/debian-installer/binary-$ARCH/Packages.gz -O - | zcat | grep-dctrl -F Maintainer -s $type $ADDRESS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment