rev 3590 - debbugs-illa
Pierre Habouzit
madcoder at costa.debian.org
Tue Apr 18 16:58:53 UTC 2006
Author: madcoder
Date: 2006-04-18 16:58:52 +0000 (Tue, 18 Apr 2006)
New Revision: 3590
Modified:
debbugs-illa/bzsync.py
debbugs-illa/config.py
Log:
almost strip down kde references from bzsync
Modified: debbugs-illa/bzsync.py
===================================================================
--- debbugs-illa/bzsync.py 2006-04-18 16:49:47 UTC (rev 3589)
+++ debbugs-illa/bzsync.py 2006-04-18 16:58:52 UTC (rev 3590)
@@ -30,9 +30,9 @@
###############################################################################
"""
-Usage: %s nnn http://bugs.kde.org/NNN
+Usage: %s nnn %s/NNN
- mark debian bug #nnn be forwarded to http://bugs.kde.org/NNN
+ mark debian bug #nnn be forwarded to %s/NNN
also update usertag flags (bzStatus/bzRes atm).
"""
@@ -46,13 +46,16 @@
bugurl = re.compile(r"^http://bugs.kde.org/(?:show_bug.cgi\?id=)?([0-9]*)$")
def usage(exitCode = 1):
- print >> sys.stderr, (__doc__ % (sys.argv[0].split('/')[-1]))
+ url = Config.Bugzilla.rstrip('/')
+ print >> sys.stderr, (__doc__ % (sys.argv[0].split('/')[-1]), url, url)
sys.exit(exitCode)
def prepareMail(bug, rep, needsForwarded):
+ url = Config.Bugzilla.rstrip('/')
+
body = "user %s\n" % (Config.User)
if needsForwarded:
- body += "forwarded %s http://bugs.kde.org/%s\n" % (bug, rep.bug)
+ body += "forwarded %s %s/%s\n" % (bug, url, rep.bug)
tmp = rep.getStatus()
if tmp is not None:
@@ -87,7 +90,7 @@
bug = sys.argv[1]
else: usage(1)
- bzi = bz.BzInterface("http://bugs.kde.org")
+ bzi = bz.BzInterface(Config.Bugzilla)
rep = bzi.getReport(bzBug)
msg = MIMEText(prepareMail(bug, rep, fwd))
Modified: debbugs-illa/config.py
===================================================================
--- debbugs-illa/config.py 2006-04-18 16:49:47 UTC (rev 3589)
+++ debbugs-illa/config.py 2006-04-18 16:58:52 UTC (rev 3590)
@@ -29,12 +29,13 @@
# SUCH DAMAGE.
###############################################################################
-
class Config:
patterns = [ "http://bugs.kde.org/show_bug.cgi?id=%s",
"http://bugs.kde.org/%s",
"%s at bugs.kde.org" ]
+ Bugzilla = "http://bugs.kde.org"
Ldap = 'ldap://bts2ldap.debian.net:10101'
From = 'debian-qt-kde at lists.debian.org'
User = 'debian-qt-kde at lists.debian.org'
+
More information about the pkg-kde-commits
mailing list