diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-04-14 20:50:47 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-04-14 20:50:47 +0000 |
commit | fd56191f34405f616147ae898be1576b02013e68 (patch) | |
tree | 562df026f34c610f09181f2239674bc9cea20be1 | |
parent | 1a7afd9a9cdba83fe79d06b5f92efeebc1ea1971 (diff) | |
download | autobuild-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.
-rwxr-xr-x | autobuild.rb | 6 |
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 |