summaryrefslogtreecommitdiffstats
path: root/autobuild.rb
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-04-14 20:50:47 +0000
committerPascal Terjan <pterjan@mageia.org>2020-04-14 20:50:47 +0000
commitfd56191f34405f616147ae898be1576b02013e68 (patch)
tree562df026f34c610f09181f2239674bc9cea20be1 /autobuild.rb
parent1a7afd9a9cdba83fe79d06b5f92efeebc1ea1971 (diff)
downloadautobuild-fd56191f34405f616147ae898be1576b02013e68.tar
autobuild-fd56191f34405f616147ae898be1576b02013e68.tar.gz
autobuild-fd56191f34405f616147ae898be1576b02013e68.tar.bz2
autobuild-fd56191f34405f616147ae898be1576b02013e68.tar.xz
autobuild-fd56191f34405f616147ae898be1576b02013e68.zip
Search for known problems only in failed packages
This is very slow.
Diffstat (limited to 'autobuild.rb')
-rwxr-xr-xautobuild.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/autobuild.rb b/autobuild.rb
index 7b0c8d5..20b5d7b 100755
--- a/autobuild.rb
+++ b/autobuild.rb
@@ -202,8 +202,10 @@ def insert_run(db, status_file)
# Store some interesting attributes about the build
log_dir = File.dirname(status_file) + '/' + name + '-' + version + '-' + release + '.src.rpm'
attr = find_attributes(log_dir)
- bug_attr = find_bug_matches(log_dir)
- attr = attr + ' ' + bug_attr if bug_attr
+ if result != 'ok' then
+ bug_attr = find_bug_matches(log_dir)
+ attr = attr + ' ' + bug_attr if bug_attr
+ end
#puts "\t\t\tAttributes: " + attr
if attr then