Control: close 991543 1.0~prerelease-2+rm
Control: close 947278 1.0~prerelease-2+rm
Control: close 938850 1.0~prerelease-2+rm

On Thu, 2022-07-28 at 01:19 +0200, Chris Hofstaedtler wrote:

> Not sure how you determined this

I have a pair of scripts (attached) and a crontab for this:

   cd ~/.cache/detect-reintroduced-packages
   cat /var/lib/apt/lists/*.debian.org_*_dists_*_*_source_Sources > Sources
   cp Sources Sources.old.tmp
   debian-reopen-reintroduced-bugs
   mv Sources.old.tmp Sources.old

> it looks like src:xmlelements is not in unstable/experimental now?

https://tracker.debian.org/news/1257974/removed-10prerelease-2-from-experimental/


> Maybe the bugs want to be closed again?

Not sure why ftp-master didn't do that. Agreed, doing so above
and also closing the additional bug that got filed too.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: debian-reopen-reintroduced-bugs
Description: application/shellscript

#!/usr/bin/python3
# pabs got this from themill on #debian-devel 2020-05
# written by Stuart Prescott <stu...@debian.org>

import sys
from typing import List, Dict

from debian.deb822 import Sources, Removals


def source_packages(filename: str) -> List[str]:
    with open(filename) as fh:
        source_pkgs = []
        for s in Sources.iter_paragraphs(fh):
            if s.get('Extra-Source-Only') == 'yes':
                continue
            source_pkgs.append(s['Source'] if 'Source' in s else s['Package'])
    return source_pkgs


def removed_packages(filename: str) -> Dict[str, str]:
    with open(filename) as fh:
        removed_pkgs: List[Dict[str, str]] = []
        for r in Removals.iter_paragraphs(fh):
            if 'sources' not in r:
                continue
            if r['suite'] == 'unstable':
                removed_pkgs.extend(r.sources)
    return {r['source']: r for r in removed_pkgs}


old_sources = source_packages('Sources.old')
new_sources = source_packages('Sources')

added_sources = set(new_sources) - set(old_sources)

if not added_sources:
    sys.exit(0)

rm_sources = removed_packages('removals-full.822')

reintroduced_sources = [s for s in added_sources if s in rm_sources]

if reintroduced_sources:
    print("Found reintroduced sources:")

    for s in reintroduced_sources:
        if 'also-bugs' in rm_sources[s]:
            extra_msg = 'extra triage needed'
        else:
            extra_msg = ''
        print("  {source}/{version}{extra}".format(
                source=s,
                extra=extra_msg,
                version=rm_sources[s]['version'],
            ))
    sys.exit(1)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to