Commit d0711750 authored by Jerome Flesch's avatar Jerome Flesch

update_flatpak_repo.sh: always reuse the same git workdir: there will be a...

update_flatpak_repo.sh: always reuse the same git workdir: there will be a .flatpak-builder directory that we want to reuse everytime
Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 9764e73f
Pipeline #102563 failed with stage
in 45 minutes
......@@ -41,7 +41,24 @@ mkdir -p ${LOCKDIR}
msg "PID: $$ \> ${PIDFILE}"
echo $$ > ${PIDFILE}
mkdir -p ~/flatpak
# We make our own copy of the repository: there will be a big .flatpak-builder
# created in it with a lot of cache files we want to reuse later.
mkdir -p ~/git
cd ~/git
if ! [ -d paperwork ] ; then
if ! git clone https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git ;
then
echo "Clone failed !"
exit 1
fi
fi
cd paperwork
if ! git checkout "${branch}" or ! git pull ; then
echo "Git pull failed !"
exit 1
fi
mkdir -p ~/flatpak # directory that contains the repository directory
cd flatpak/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment