summaryrefslogtreecommitdiffstats
path: root/autobuild.rb
diff options
context:
space:
mode:
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