rev 3583 - scripts
Pierre Habouzit
madcoder at costa.debian.org
Tue Apr 18 11:36:00 UTC 2006
Author: madcoder
Date: 2006-04-18 11:35:59 +0000 (Tue, 18 Apr 2006)
New Revision: 3583
Modified:
scripts/bzsync.py
Log:
make bzsync accept http://bugs.kde.org/show_bug.cgi?id=NNNNNN addresses,
as it's what is un konqui's url bar.
Modified: scripts/bzsync.py
===================================================================
--- scripts/bzsync.py 2006-04-18 11:22:48 UTC (rev 3582)
+++ scripts/bzsync.py 2006-04-18 11:35:59 UTC (rev 3583)
@@ -39,8 +39,9 @@
from email.MIMEText import MIMEText
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]*)$")
+wget = "wget -o /dev/null -O - %s | egrep '<b>(Status|Resolution)'"
+bugurl1 = re.compile(r"^http://bugs.kde.org/([0-9]*)$")
+bugurl2 = 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]))
@@ -69,8 +70,11 @@
url = sys.argv[-1]
fwd = True
- m = bugurl.match(url)
- if not m: usage(1)
+ m = bugurl1.match(url)
+ if not m:
+ m = bugurl2.match(url)
+ elif not m:
+ usage(1)
bzBug = m.group(1)
More information about the pkg-kde-commits
mailing list