diff options
author | Karel Klic <kklic@redhat.com> | 2010-05-21 14:53:59 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-06-09 17:18:47 +0200 |
commit | edbd2766911848c7ba808eea370989f5c12bd3a1 (patch) | |
tree | 1fa7b061499ae9dfd2224f7f760a28f773f36101 /scripts | |
parent | d43ef1696eda5a599534ff3850acb002359f3d6a (diff) | |
download | abrt-edbd2766911848c7ba808eea370989f5c12bd3a1.tar.gz abrt-edbd2766911848c7ba808eea370989f5c12bd3a1.tar.xz abrt-edbd2766911848c7ba808eea370989f5c12bd3a1.zip |
abrt-bz-dupchecker: limit search to Fedora OS only, update the URL of pkgdb
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/abrt-bz-dupchecker | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/abrt-bz-dupchecker b/scripts/abrt-bz-dupchecker index 89e13281..b337934e 100755 --- a/scripts/abrt-bz-dupchecker +++ b/scripts/abrt-bz-dupchecker @@ -54,7 +54,7 @@ bz = RHBugzilla() bz.connect(options.bugzilla) bz.login(options.user, options.password) -buginfos = bz.query({'status_whiteboard_type':'allwordssubstr','status_whiteboard':'abrt_hash'}) +buginfos = bz.query({'status_whiteboard_type':'allwordssubstr','status_whiteboard':'abrt_hash', 'product':'Fedora'}) print "{0} bugs found.".format(len(buginfos)) @@ -122,7 +122,7 @@ for buginfo in buginfos: if not downloaded: continue - command = ["./abrt-backtrace"] + command = ["abrt-backtrace"] command.append(filename) command.append("--single-thread") command.append("--frame-depth=5") @@ -178,7 +178,7 @@ for backtrace, components in database.items(): # Get the component owner owner = "Failed to get component owner" try: - component_info = json.load(urllib.urlopen("https://admin.fedoraproject.org/pkgdb/packages/name/{0}?tg_format=json".format(component))) + component_info = json.load(urllib.urlopen("https://admin.fedoraproject.org/pkgdb/acls/name/{0}?tg_format=json".format(component))) component_packages = component_info['packageListings'] component_f12 = filter(lambda x:x["collection"]["version"]=="12", component_packages) if len(component_f12) == 1: @@ -191,7 +191,7 @@ for backtrace, components in database.items(): # Close all bugs where it is appropriate. if options.close: - LIMIT = 1000 + LIMIT = 10000 # infinite counter = 0 for (component, owner, bugitems, backtrace) in dups: # Find the master bug item |