Hi,
I was wondering why my cron was not kicking in.
I retitled once more ;-)
The cron is there because I want the hyperlink from the bug to the PTS.
The PTS has another workaround to link RM bugs from ftp.debian.org
More noise :-|
#!/usr/bin/python3
import subprocess
import apt_pkg
import debianbts as bts
apt_pkg.init()
SOURCES = apt_pkg.SourceRecords()
bugs = bts.get_bugs(package='ftp.debian.org')
for bug in bts.get_status(list(bugs)):
if bug.affects or bug.done:
continue
if 'RM' in bug.subject and '/experimental' not in bug.subject:
package = bug.subject.split(':')[1].strip(' ').split()[0].split(',')[0]
if SOURCES.lookup(package):
subprocess.call(['bts', 'affect', str(bug.bug_num), package])