[sysadmin-bin] s/Bugzilla/GitLab



commit ed650497b76ebaf7f10220f7db80cdcd3064262c
Author: Andrea Veri <averi redhat com>
Date:   Wed Aug 11 11:31:34 2021 +0200

    s/Bugzilla/GitLab

 ftpadmin | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 05f2e9d..f87414d 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -931,13 +931,12 @@ class ModuleInfo(DirectoryInfo):
     def get_from_doap(self, needle, default=None):
         return self.doap.info.get(self._reponame, {}).get(needle, default)
 
-    def get_bz_product_from_doap(self):
-        for bz in self.get_from_doap('bug-database', []):
-            url = urlparse.urlparse(bz)
-            if url.netloc == 'bugzilla.gnome.org':
-                d = urlparse.parse_qs(url.query)
-                if 'product' in d:
-                    yield d['product'][0]
+    def get_gl_issues_url_from_doap(self):
+        for gl in self.get_from_doap('bug-database', []):
+            url = urlparse.urlparse(gl)
+
+            if url.netloc == 'gitlab.gnome.org':
+                return gl
 
     @property
     def versions(self):
@@ -1606,9 +1605,9 @@ def cmd_show_doap(options, parser):
         if "\n" in paragraph: paragraph = re_whitespace.sub(" ", paragraph)
         print textwrap.fill(paragraph)
         print ""
-    bz = moduleinfo.get_bz_product_from_doap()
-    if bz:
-        print "Bugzilla: %s" % ", ".join(bz)
+    gl = moduleinfo.get_gl_issues_url_from_doap()
+    if gl:
+        print "GitLab issues tracker: %s" % ", ".join(bz)
     maints = moduleinfo.maintainers
     if maints:
         print "Maintainers: %s" % ", ".join(sorted(maints))


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