Compare commits

..

2 Commits

Author SHA1 Message Date
7b304f2b6b
added support for package cache
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2019-04-27 22:03:04 +02:00
5b9dd03e14
continue download if package already downloaded 2019-04-27 19:34:59 +02:00

6
run.sh
View File

@ -31,9 +31,11 @@ if [ ! -r /drone/src/packages.list ] ; then
echo "! missing packages.list"
exit 1
fi
mkdir -p /src/libreschool
mkdir -p /src/libreschool /drone/src/package_cache
cd /drone/src/package_cache
wget -cqi /drone/src/packages.list || ( echo "! cannot download all packages" ; exit 1 )
cp *.rpm /src/libreschool
cd /src/libreschool
wget -qi /drone/src/packages.list || ( echo "! cannot download all packages" ; exit 1 )
echo "+ Updating libreschool local repo"
createrepo -dp .