rev 3580 - scripts
Pierre Habouzit
madcoder at costa.debian.org
Tue Apr 18 09:12:52 UTC 2006
Author: madcoder
Date: 2006-04-18 09:12:51 +0000 (Tue, 18 Apr 2006)
New Revision: 3580
Modified:
scripts/bzsync.py
Log:
fix bzsync using the clean config from bzlink.
Modified: scripts/bzsync.py
===================================================================
--- scripts/bzsync.py 2006-04-18 08:15:19 UTC (rev 3579)
+++ scripts/bzsync.py 2006-04-18 09:12:51 UTC (rev 3580)
@@ -37,7 +37,7 @@
import sys, re, os, commands, email, smtplib
from email.MIMEText import MIMEText
-from bzlink import BtsQuery, patterns
+from bzlink import BtsQuery, Config
wget = "wget -o /dev/null -O - %s | egrep '<b>(Status|Resolution)'"
bugurl = re.compile(r"^http://bugs.kde.org/([0-9]*)$")
@@ -51,7 +51,7 @@
flags = re.sub(r"<[^<]*>", "", flags)
- body = "user debian-qt-kde at lists.debian.org\n"
+ body = "user %s\n" % (Config.User)
if needsForwarded:
body += "forwarded %s %s\n" % (bug, url)
body += "usertag %s =\n" % (bug)
@@ -76,7 +76,7 @@
if len(sys.argv) is 2:
bts = BtsQuery()
- bug = bts.fromBzBug(patterns, int(bzBug))
+ bug = bts.fromBzBug(Config.patterns, int(bzBug))
if bug is None:
print >> sys.stderr, "Cannot find any debian bug forwarded to upstream bug %s" % bzBug
sys.exit(1)
@@ -87,7 +87,7 @@
else: usage(1)
msg = MIMEText(prepareMail(bug, url, fwd))
- msg['From'] = 'debian-qt-kde at lists.debian.org'
+ msg['From'] = Config.From
msg['To'] = 'control at bugs.debian.org'
msg['X-Debbugs-No-Ack'] = 'no-acks'
msg['Content-Type'] = 'text/plain; charset="utf-8"'
More information about the pkg-kde-commits
mailing list