Fix for koji buildinfo.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 13:18:06 +0000 (13:18 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 13:18:06 +0000 (13:18 +0000)
Goalfile

index de5d406..0d94149 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -59,8 +59,9 @@ tactic *built-in-koji (pkg) = {
     grep -sq %rebuild-name $specfile || exit 99
 
     # Else we must check Koji itself.
+    # Koji sends some messages to stderr.
     nvr=$(fedpkg verrel)
-    buildinfo=$($koji buildinfo $nvr)
+    buildinfo=$($koji buildinfo $nvr 2>&1)
 
     # No build at all, needs rebuild.
     echo "$buildinfo" | grep -sq "No such build" && exit 99