[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-37-g3088578
Sandro Tosi
morph at debian.org
Sat Aug 27 19:03:29 UTC 2011
The following commit has been merged in the master branch:
commit fb568bffd3784d91454a0605f9c7b8da3b71eb38
Author: Sandro Tosi <morph at debian.org>
Date: Sat Aug 27 17:18:08 2011 +0200
use utils.get_arch() instead of a custom function
diff --git a/reportbug/checkbuildd.py b/reportbug/checkbuildd.py
index 576cc6b..7a49074 100644
--- a/reportbug/checkbuildd.py
+++ b/reportbug/checkbuildd.py
@@ -24,6 +24,7 @@
import sgmllib
import commands
+import utils
from urlutils import open_url
from reportbug.exceptions import (
NoNetwork,
@@ -65,12 +66,9 @@ class BuilddParser(sgmllib.SGMLParser):
if data and 'successful' in data:
self.found_succeeded=True
-def archname():
- return commands.getoutput('dpkg --print-architecture')
-
def check_built(src_package, timeout, arch=None, http_proxy=None):
if not arch:
- arch = archname()
+ arch = utils.get_arch()
try:
page = open_url(BUILDD_URL % (arch, src_package), http_proxy, timeout)
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list