[gnome-build-meta/valentindavid/local-commit-date] utils/update-local-repo.sh: Set date when importing commit




commit aeba4ebfd6ba65780ff7e4f821bca91bcff90fa1
Author: Valentin David <valentin david codethink co uk>
Date:   Fri Apr 23 15:55:05 2021 +0200

    utils/update-local-repo.sh: Set date when importing commit
    
    For eos-updater to allow to update, the date of new commit has to be
    after date of current deployed commit. So without it, it is not
    possible to update from local repository in GNOME Software.

 utils/update-local-repo.sh | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/utils/update-local-repo.sh b/utils/update-local-repo.sh
index ff4dfe84..d40b7f65 100755
--- a/utils/update-local-repo.sh
+++ b/utils/update-local-repo.sh
@@ -74,6 +74,7 @@ for element in ${REPO_ELEMENTS}; do
     prev_commit=$(ostree rev-parse --repo ostree-repo ${ref} 2>/dev/null || true)
     test -n "${prev_commit}" && updated_refs="${updated_refs} ${ref}"
     flatpak build-commit-from --gpg-homedir=ostree-gpg --gpg-sign="$(cat ostree-gpg/default-id)" \
+            --timestamp=NOW \
             --src-repo="$checkout/$element" --extra-collection-id=org.gnome.GnomeOS ostree-repo $ref
 done
 


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