[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Work-needing packages report for Sep 6, 2002



Richard Braakman wrote :

> I have for some time been thinking of writing a script "debselfish", which
> goes through your system and displays a warning for each installed package
> that is orphaned, or has an ITA, or has had a lot of NMUs, or has open RC
> bugs, or has been removed from unstable.  (The general rule is, warn if
> there's a risk that the package won't be in the next stable release.)

Such a script (well a start) was posted once (don't remember when and
who posted it).

# wnppalert -- check for orphaned or put up for adoption, installed packages 

# get a list of packages with bugnumbers. I tried with LDAP, but this is _much_
# faster

I attach it.  The author should now stand up...

The output looks like:

O 68594 psptools -- Tools for PostScript printers and devices
RFA 154590 docbook-to-man -- Converter from DocBook SGML into roff -man macros.
RFA 92354 libnss-db -- DB based Name Service Module


Regards,
        Frederic

-- 
Frédéric Péters <fpeters@theridion.com> <fpeters@debian.org>
Théridion, spécialistes GNU/Linux, rue de l'Aqueduc 83 - 1050 Bruxelles
GPG: 1024D/6783ED5E: 62BF 2EDA 404A 6EB4 F5BE  A1E2 A11D CBB1 6783 ED5E
#! /bin/sh -e

# wnppalert -- check for orphaned or put up for adoption, installed packages 

# get a list of packages with bugnumbers. I tried with LDAP, but this is _much_
# faster

INSTALLED=`mktemp ${TMPDIR:-/tmp}/wnppalert-installed.XXXXXX`
WNPP=`mktemp ${TMPDIR:-/tmp}/wnppalert-wnpp.XXXXXX`
WNPP_PACKAGES=`mktemp ${TMPDIR:-/tmp}/wnppalert-wnpp_packages.XXXXXX`

wget -O - http://www.debian.org/devel/wnpp/orphaned| \
egrep '^<li><a href="http://bugs.debian.org/'| \
sed 's/<li><a href="http:\/\/bugs.debian.org\/\([0-9]*\)">\([^:]*\): \(.*\)<\/a>/O \1 \2 -- \3/'\
> $WNPP 2> /dev/null

wget -O - http://www.debian.org/devel/wnpp/rfa_bypackage| \
egrep '^<li><a href="http://bugs.debian.org/'| \
sed 's/<li><a href="http:\/\/bugs.debian.org\/\([0-9]*\)">\([^:]*\): \(.*\)<\/a>/RFA \1 \2 -- \3/'\
>> $WNPP 2> /dev/null

cut -f3 -d' ' $WNPP | sort > $WNPP_PACKAGES

# A list of installed files. This shouldn't use /var/lib/dpkg/status directly, but speed ...

grep -B1 'Status: install ok installed' /var/lib/dpkg/status| \
grep Package| \
cut -f2 -d' '| \
sort \
> $INSTALLED

(
egrep "`comm -12 $WNPP_PACKAGES $INSTALLED | tr "\n" \|`IDontMatchAnything" $WNPP
echo
echo "Yours obediently, $0"
) | mail -s "Packages installed on $HOSTNAME appear on WNPP" root

rm $WNPP $WNPP_PACKAGES $INSTALLED

Attachment: pgpEpeoIW4_AG.pgp
Description: PGP signature


Reply to: