Subject: bug#656: Reportbug BTS

From: Mark Hindley <[email-masked]>
Date: Mon, 21 Feb 2022 11:38:37 +0000

Hi,

I have a patch proposal for reportbug that offers to send reports on unforked
packages to Debian's BTS.

The default choice remains as Devuan.

For packages with 'Origin: Devuan' or 'devuan' in the version, Devuan's BTS is
used without question.

What do you think?

Thanks

Mark
From 328cf9e47dfb735b1035fe1a12aaae1ed1cfee53 Mon Sep 17 00:00:00 2001
From: Mark Hindley <[email-masked]>
Date: Mon, 21 Feb 2022 11:19:29 +0000
Subject: [PATCH] Offer to send bugs in unforked packages directly to Debian.

Closes: #656
---
 bin/reportbug | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/bin/reportbug b/bin/reportbug
index d5e395d..6456112 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1721,10 +1721,21 @@ class UI(object):
                 ewrite("Unknown origin %s; will send to %s.\n", origin, submitto)
             else:
                 ewrite("Unknown origin %s; will send to %s.\n", origin, bts)
+        elif 'devuan' in pkgversion:
+            bts='devuan'
+            ewrite("Devuan package version found; will send to %s.\n", bts)
         elif reportinfo:
             rtype, submitto = reportinfo
             ewrite("Will use %s protocol talking to %s.\n", rtype, submitto)
             dontquery = True
+        elif ui.yes_no('%s (%s) appears to be an unforked Devuan package.\n'
+                       'Send directly to Debian\'s BTS' % (package, pkgversion),
+                       'Send report to Debian BTS',
+                       'Sent report to Devuan BTS',
+                       # Default to no for the moment
+                       False):
+            bts='debian'
+            ewrite("Reporting bug in unforked Devuan package to %s.\n", bts)
         else:
             lsbr = subprocess.getoutput('lsb_release -si 2>/dev/null')
             if lsbr:
-- 
2.20.1