mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 15:47:59 +02:00
tools/ci-install.sh: clean up the previously used installation prefix and the downloaded mingw packages
This is necessary to have a clean initial state when running the script locally. Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
parent
99c1de5180
commit
c4d69fe95e
1 changed files with 7 additions and 0 deletions
|
|
@ -194,6 +194,8 @@ if [ "$ci_local_packages" = yes ]; then
|
|||
(*-w64-mingw32)
|
||||
mirror=https://repo.msys2.org/mingw/${ci_host%%-*}
|
||||
dep_prefix=$(pwd)/${ci_host}-prefix
|
||||
# clean install dir, if present
|
||||
rm -rf ${dep_prefix}
|
||||
install -d "${dep_prefix}"
|
||||
wget -O files.lst ${mirror}
|
||||
sed 's,^<a href=",,g;s,">.*$,,g' files.lst | grep -v "\.db" | grep -v "\.files" | grep ".*zst$" | sort > filenames.lst
|
||||
|
|
@ -216,6 +218,11 @@ if [ "$ci_local_packages" = yes ]; then
|
|||
echo "could not find filename for package '${pkg}'"
|
||||
exit 1
|
||||
fi
|
||||
# Remove previously downloaded file, which can happen
|
||||
# when run locally
|
||||
if [ -f ${filename} ]; then
|
||||
rm -rf ${filename}
|
||||
fi
|
||||
wget ${mirror}/${filename}
|
||||
tar -C ${dep_prefix} --strip-components=1 -xvf ${filename}
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue