[gimp] build: update the flatpak cron file.



commit ff56a3af8dcbf0e2d879f0ea58a8a78d1b7688bb
Author: Jehan <jehan girinstud io>
Date:   Fri Sep 14 18:12:23 2018 +0200

    build: update the flatpak cron file.
    
    The artifacts should be moved after each export (otherwise we mix
    artefacts from various builds). Also fix the last date call.

 build/flatpak/gimp-flatpak-cron.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/build/flatpak/gimp-flatpak-cron.sh b/build/flatpak/gimp-flatpak-cron.sh
index c009638155..c956500b15 100755
--- a/build/flatpak/gimp-flatpak-cron.sh
+++ b/build/flatpak/gimp-flatpak-cron.sh
@@ -57,6 +57,7 @@ if test "$?" -ne "0"; then
   print_log "Build directory '$BUILDBASE' already exists."
   exit 1
 fi
+mkdir "$ARTIFACTDIR"
 
 flatpak_build_branch() {
   ARCH=$1
@@ -96,6 +97,7 @@ flatpak_build_branch() {
       print_log "Flatpak $BRANCH/$ARCH successfully exported to ${REPO}"
     fi
   fi
+  mv ${STATEDIR}/build/ "${ARTIFACTDIR}/${ARCH}"
   print_log "Detailed build logs for $BRANCH/$ARCH: ${BUILDLOG}"
 
   return $ret
@@ -106,6 +108,5 @@ flatpak_build_branch() {
 for arch in "i386" "x86_64"; do
   flatpak_build_branch $arch nightly yes
 done
-mv ${STATEDIR}/build/ "${ARTIFACTDIR}"
 
-print_log "Cron file ending at `date --rfc-2822=minute`"
+print_log "Cron file ending at `date --rfc-2822`"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]