[Libreoffice-commits] dev-tools.git: flatpak/build.sh

Stephan Bergmann sbergman at redhat.com
Thu Jun 9 13:11:31 UTC 2016


 flatpak/build.sh |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

New commits:
commit 9cfedef96dc5421cf72c563632bcf0030ee3c653
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jun 9 15:10:56 2016 +0200

    flatpak/build.sh: Prune everything but current and prev version from repo

diff --git a/flatpak/build.sh b/flatpak/build.sh
index 03bfc2d..4cf537f 100755
--- a/flatpak/build.sh
+++ b/flatpak/build.sh
@@ -126,7 +126,7 @@ flatpak build --nofilesystem=host "${my_dir?}"/app appstream-compose \
  org.libreoffice.LibreOffice-{base,calc,draw,impress,writer}
 
 
-# 6  Generate bundle:
+# 6  Generate bundle
 
 flatpak build-finish --command=/app/libreoffice/program/soffice \
  --share=network --share=ipc --socket=x11 --socket=wayland --socket=pulseaudio \
@@ -135,9 +135,16 @@ flatpak build-finish --command=/app/libreoffice/program/soffice \
 flatpak build-export --gpg-homedir="${my_gpghomedir?}" \
  --gpg-sign="${my_gpgkeyid?}" "${my_dir?}"/repository "${my_dir?}"/app \
  "${my_flatpakbranch?}"
+## --prune-depth=1 leaves the one most recent older revision available; that
+## keeps the repo from growing without bounds, but for one allows users to roll
+## back at least one rev (if there's decent support for that; there's currently
+## "flatpak update --commit="), and for another makes --generate-static-deltas
+## provide fast deltas at least from that prev rev (in addition to fast deltas
+## "from nothing"):
 flatpak build-update-repo --title='The Document Foundation LibreOffice' \
- --generate-static-deltas --prune --gpg-homedir="${my_gpghomedir?}" \
- --gpg-sign="${my_gpgkeyid?}" "${my_dir?}"/repository
+ --generate-static-deltas --prune --prune-depth=1 \
+ --gpg-homedir="${my_gpghomedir?}" --gpg-sign="${my_gpgkeyid?}" \
+ "${my_dir?}"/repository
 tar --create --file "${my_dir?}"/repository.tgz --gzip \
  --directory="${my_dir?}" repository
 rm -f "${my_dir?}"/key


More information about the Libreoffice-commits mailing list