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

Re: removal instead of orphaning?



Hi,

On Fri, Aug 26, 2016 at 09:47:39PM +0200, Adam Borowski wrote:
> On Fri, Aug 26, 2016 at 09:38:02PM +0200, Guus Sliepen wrote:
> > > Should unrelated people spend time on packages they don't care about?
> > 
> > No, that's why they are orphaned in the first place.
> 
> You can run the attached script to see if there are any RC bugs on an
> orphaned package you might give a damn about.

> rc-alert -dU "$@" \
>           `wget -qO- http://www.debian.org/devel/wnpp/orphaned|
>           sed -ne 's/.*<li><a href="https\?:\/\/bugs.debian.org\/\([0-9]*\)">\([^:<]*\)[: ]*\([^<]*\)<\/a>.*/O \1 \2 -- \3/; T d; p; : d'|
>           cut -d' ' -f 3`

I was a bit scared by the length of the list on my system, but
it seems to list all RC bugs for all orphaned packages, not
just those being installed. This is because of rc-alert's
behaviour:

$ dpkg -l bootchart
dpkg-query: no packages found matching bootchart
$ rc-alert -dU bootchart
Package: bootchart
Bug:     731669
Title:   bootchart: outdated version should not be shipped with jessie
Flags:   [        ] (none)
Dists:   [U] (unstable)

Package: src:bootchart
Bug:     817382
Title:   bootchart: Removal of debhelper compat 4
Flags:   [        ] (none)
Dists:   [U] (unstable)

This modification should output only rc-bugs of orphaned and
installed packages, which ony my system is just a single bug
instead of houndreds:

rc-alert -dU `wnpp-alert | grep "^O " | cut -d' ' -f 3`

-- Sebastian


Attachment: signature.asc
Description: PGP signature


Reply to: