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

Re: First autoremovals happen in about 8 days

On Tue, Oct 08, 2013 at 07:36:57PM +0000, Bill Allombert wrote:
> Did you try to run rc-alert recently ? The output is totally overwhelming
> for something that is to run on several computers and several times by
> month. Most of the bugs are reported against important packages that cannot
> be removed anyway. This do not give good clue about packages that could be
> NMUed with positive effect. The removal list is much more useful in this
> regard, if only because once a package is removed, the maintainer can hardly
> complain about a NMU.

What would you think about some variant of the attached (q&d) script? It
fetches the removal list and matches it to your system. That way it
excludes packages that you would not NMU and it only lists packages that
lack attention.

In order to meet in the middle maybe rc-alert could gain an option to
sort bugs their last change? That would essentially boil down to the
same heuristic as is being used for generating removal hints: Bugs that
are not touched in a long time.


import urllib
import contextlib
import os

import yaml

pkgs = set()
with contextlib.closing(os.popen("dpkg-query -W -f '${Source:Package}\\n'", "r")) as f:
    for line in f:

with contextlib.closing(urllib.urlopen("http://udd.debian.org/cgi-bin/autoremovals.yaml.cgi";)) as f:
    data = yaml.safe_load(f)
    for key, value in data.items():
        if key in pkgs:
            print("%s: %r" % (key, value))

Reply to: