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

Re: Bug#202590: marked as done (PTS: auto-unsubscribe after a certain time frame)



[ Voluntarily leaving lots of context for devscripts's maintainer ]

Le Wed, Jul 23, 2003 at 12:18:09PM -0500, Debian Bug Tracking System écrivait:
> > > When doing an NMU the developer's reference suggests subscribing to the
> > > PTS in case bugs were introduced by the NMU. I would like have a special
> > > NMU subscription type, which unsubscribes myself automatically, say,
> > > after one month or so.
> > 
> > Hum ... what about using "at" instead ?
> > 
> > echo "echo 'unsubscribe nmuedpackage my-email@debian.org' | mail pts@qa.debian.org" | at now + 30 days
> 
> Yes, sure, but it makes it harder (at least for me) to decide to
> subscribe to an NMUed package at all. I'm just asking for support
> fighting my own laziness...
> 
> Writing the above as an alias or a shell function could be a nice
> solution, though... I think that's o.k. for me.

Yes, this could even be a tool for devscripts ... I'm ccing its
maintainer to share the idea. :)

> > I'm not so inclined to include something complicated like that in the
> > PTS when it's so simple to manage that with traditional unix tools. ;-)
> 
> I could have another look at the CVS repository, but it's probably
> Python again? ;-)

Right. :-)

> > Maybe we could document that usage of at in the developers-reference if
> > needed... I don't know.
> 
> Me neither, but I address a CC.

This time I bcced the people subscribed to the package via the PTS. Most
regular contributors to devel-ref are subscribed there. Maybe they have
an opinion and/or find it interesting enough to actually patch the sources
directly. :)

> nmutrack () {
>     if [ -z "$DEBEMAIL" ]; then
>         echo "$0: missing \$DEBEMAIL" >&2
>         return 1
>     fi
>     if [ -z "$1" ]; then
>         echo "$0: missing package name" >&2
>         return 1
>     fi
> 	cd /
>     echo "subscribe $1 $DEBEMAIL" | mail pts@qa.debian.org
>     echo "echo \"unsubscribe $1 $DEBEMAIL\" | mail pts@qa.debian.org" | at now + 30 days
> 	cd "$OLDPWD"
> }

This little sheel function can easily be put in its own script that
could be included in devscripts. It would need a bit more polishing for
the parsing of arguments but that's it ...

Cheers,
-- 
Raphaël Hertzog -+- http://www.ouaza.com
Formation Linux et logiciel libre : http://www.logidee.com
Earn money with free software: http://www.geniustrader.org



Reply to: