Browse Source

bin/build-packages: save logs of `makepkg --verifysource` runs

Erich Eckner 3 months ago
parent
commit
b42bac3d8d
1 changed files with 12 additions and 1 deletions
  1. 12
    1
      bin/build-packages

+ 12
- 1
bin/build-packages View File

@@ -488,6 +488,12 @@ while [ "${count}" -ne 0 ] && \
488 488
         verifysource_trial=0
489 489
         while [ ${verifysource_trial} -lt 5 ]; do
490 490
           verifysource_trial=$((verifysource_trial + 1))
491
+          mv \
492
+            "${tmp_dir}/verifysource.log" \
493
+            "$(
494
+              date -u --iso-8601=seconds | \
495
+                cut -d+ -f1
496
+            ).build-log" || true
491 497
           if CARCH="${arch}" makepkg --verifysource 2> "${tmp_dir}/verifysource.log"; then
492 498
             success=true
493 499
             break
@@ -585,7 +591,12 @@ while [ "${count}" -ne 0 ] && \
585 591
             verifysource_trial=$((verifysource_trial + 1))
586 592
           fi
587 593
         done
588
-        rm "${tmp_dir}/verifysource.log"
594
+        mv \
595
+          "${tmp_dir}/verifysource.log" \
596
+          "$(
597
+            date -u --iso-8601=seconds | \
598
+              cut -d+ -f1
599
+          ).build-log" || true
589 600
 
590 601
         if ${success}; then
591 602
           echo 'building' > "${tmp_dir}/.ping-build-master"