Browse Source

update the list of pseudopackages (and fix & re-enable unittest); Closes: #831848,

master
Sandro Tosi 5 years ago
parent
commit
49b591f584
  1. 4
      debian/changelog
  2. 36
      reportbug/debbugs.py
  3. 11
      test/test_debbugs.py

4
debian/changelog

@ -3,10 +3,12 @@ reportbug (7.1.1) UNRELEASED; urgency=medium
* reportbug/debbugs.py
- add sections for Rust and JavaScript, patch by Josh Triplett;
Closes: #847537
- update the list of pseudopackages (and fix & re-enable unittest);
Closes: #831848,
* doc/README.Users
- grammar fixes/improvements; patch by Vilius Panevėžys; Closes: #811193
-- Sandro Tosi <morph@debian.org> Sun, 18 Dec 2016 12:59:43 -0500
-- Sandro Tosi <morph@debian.org> Sun, 18 Dec 2016 15:45:46 -0500
reportbug (7.1.0) experimental; urgency=medium

36
reportbug/debbugs.py

@ -169,28 +169,36 @@ debother = {
'buildd.debian.org': 'Problems and requests related to the Debian Buildds',
'buildd.emdebian.org': 'Problems related to building packages for Emdebian',
'cdimage.debian.org': 'CD Image issues',
'cdrom': 'Problems with installation from CD-ROMs',
'cdrom': 'Installation system',
'cloud.debian.org': 'Issues involving Debian images for public/private clouds',
'd-i.debian.org': 'Issues regarding the d-i.debian.org service and general Debian Installer tasks',
'debian-maintainers': 'Problems and requests related to Debian Maintainers',
'debian-policy': 'Proposed changes in the Debian policy documentation',
'debian-i18n': 'Requests regarding Internationalization (i18n) of the distribution',
'debian-live': 'General problems with Debian Live systems',
'ftp.debian.org': 'Problems with the FTP site and Package removal requests',
'general': 'General problems (e.g., that many manpages are mode 755)',
'installation-reports': 'Problems with installing Debian',
'listarchives': 'Problems with the WWW mailing list archives',
'lists.debian.org': 'The mailing lists, debian-*@lists.debian.org.',
'mirrors': 'Problems with Debian archive mirrors.',
'nm.debian.org': 'New Maintainer process and nm.debian.org website',
'general': 'General problems (e.g. "many manpages are mode 755")',
'installation-reports': 'Reports of installation problems with stable & testing',
'lists.debian.org': 'The mailing lists, debian-*@lists.debian.org',
'mirrors': 'Problems with the official mirrors',
'nm.debian.org': 'New Member process and nm.debian.org webpages',
'pet.debian.net': 'The Debian Package Entropy Tracker',
'piuparts.debian.org': 'Issues with the piuparts.debian.org service',
'press': 'Press release issues',
'project': 'Problems related to project administration',
'qa.debian.org': 'Problems related to the quality assurance group',
'qa.debian.org': 'The Quality Assurance group',
'release.debian.org': 'Requests regarding Debian releases and release team tools',
'release-notes': 'Problems with the release notes',
'release-notes': 'Problems with the Release Notes',
'rtc.debian.org': 'Issues in the operation of the Debian RTC services which are not package-specific bugs',
'security-tracker': 'The Debian Security Bug Tracker',
'security.debian.org': 'Problems with the security updates server',
'snapshot.debian.org': 'Issues with the snapshot.debian.org service',
'security.debian.org': 'The Debian Security Team',
'snapshot.debian.org': 'Issues with the snapshot.debian.org service ',
'spam': 'Spam (reassign spam to here so we can complain about it)',
'tech-ctte': 'Issues to be referred to the technical committee',
'upgrade-reports': 'Reports of successful and unsucessful upgrades',
'sponsorship-requests': 'Requests for package review and sponsorship',
'sso.debian.org': 'Problems and requests related to the Debian Single Sign On system',
'summit.debconf.org': 'Problems and requests related to the DebConf Summit instance',
'tech-ctte': 'The Debian Technical Committee (see the Constitution)',
'tracker.debian.org': 'Issues with the Debian Package Tracker and coordination of its maintenance',
'upgrade-reports': 'Reports of upgrade problems for stable & testing',
'wiki.debian.org': 'Problems with the Debian wiki',
'wnpp': 'Work-Needing and Prospective Packages list',
'www.debian.org': 'Problems with the WWW site (including other *.debian.org sites, except alioth)'

11
test/test_debbugs.py

@ -4,6 +4,7 @@ from nose.plugins.attrib import attr
import mock
from reportbug import utils
from reportbug import debbugs
from reportbug import urlutils
import urllib.request, urllib.parse, urllib.error
import re
@ -158,17 +159,21 @@ class TestMiscFunctions(unittest.TestCase):
self.assertEqual(debbugs.convert_severity(severity, type), value)
@attr('network') # marking the test as using network
@unittest.skip("Need to talk with dondelelcaro about make them sync")
def test_pseudopackages_in_sync(self):
dictparse = re.compile(r'([^\s]+)\s+(.+)', re.IGNORECASE)
bdo_list = {}
pseudo = urllib.request.urlopen('https://bugs.debian.org/pseudopackages/pseudo-packages.description')
for l in pseudo:
pseudo = urlutils.urlopen('https://bugs.debian.org/pseudopackages/pseudo-packages.description')
for l in pseudo.splitlines():
m = dictparse.search(l)
bdo_list[m.group(1)] = m.group(2)
# we removed base from reportbug
del bdo_list['base']
# uniform reportbug customized descriptions
for customized in 'www.debian.org', 'ftp.debian.org':
bdo_list[customized] = debbugs.debother[customized]
self.maxDiff = None
self.assertEqual(debbugs.debother, bdo_list)

Loading…
Cancel
Save