stat: Remove one die.
[massrebuild.git] / runone
diff --git a/runone b/runone
index 022d0e5..2df2d54 100755 (executable)
--- a/runone
+++ b/runone
@@ -31,7 +31,8 @@ for pkg in "$@";do
      continue
    fi
    (echo '%global _find_debuginfo_dwz_opts %{nil}'
-    echo '%global optflags %(echo %{optflags}|sed "s/ -g / -g -fdebug-types-section /")'
+# It removes -fcommon, use redhat-rpm-config.patch instead.
+#    echo '%global optflags %(echo %{optflags}|sed "s/ -g / -g -fdebug-types-section /")'
     sed 's/^%\(\(define\|global\) *_find_debuginfo_dwz_opts\)/\1/'
    ) <$name.spec >$name.spec.new
    cp -p $name.spec     ../$srcrpm.spec
@@ -50,13 +51,17 @@ for pkg in "$@";do
    mv -f resultdir/*.src.rpm ../$srcrpm.dt.rpm
    cd ..
   test -e $srcrpm.dt.rpm
+  ln $srcrpm.dt.rpm $srcrpm.dt5.rpm
   rm -rf $srcrpm.d
-  for ext in "" ".dt.rpm";do
+  for ext in "" ".dt.rpm" ".dt5.rpm";do
     resultdir=$PWD/$srcrpm$ext.resultdir
     test ! -e $resultdir
     set +e
     # --chain instead of --rebuild as otherwise -a does not work
-    $mock --resultdir=$resultdir --nocheck $(: -a https://people.redhat.com/jkratoch/dwzrepo/ ) --chain $srcrpm$ext &>$srcrpm$ext.mocklog
+    $mock --resultdir=$resultdir --nocheck $(
+      if [ "$ext" = ".dt.rpm"  ];then echo -a https://www.jankratochvil.net/t/rpmdts/ ;fi
+      if [ "$ext" = ".dt5.rpm" ];then echo -a https://www.jankratochvil.net/t/rpmdts5/;fi
+      ) --chain $srcrpm$ext &>$srcrpm$ext.mocklog
     mockrc=$?
     set -e
     test -e $resultdir