diff --git a/.github/scripts/ciutil b/.github/scripts/ciutil index 9abdf52..f2baba5 100755 --- a/.github/scripts/ciutil +++ b/.github/scripts/ciutil @@ -18,6 +18,8 @@ download() { install-deb() { local pkgs="$@" + local exitcode=0 + sudo apt-get -qq install --download-only -y $pkgs || exitcode=$? if [ ! $exitcode -eq 0 ]; then @@ -33,12 +35,16 @@ install-deb() { preinstall-binaries() { local dir=$PWD + # Testing: + sudo rm -rf /var/lib/apt/* + sudo rm -rf /var/cache/* + # Optimize apt-get install time (no need for mandb on a ci) sudo cp -p /bin/true /usr/bin/mandb 2> /dev/null || true sudo mv -f /var/cache/man /tmp/ 2> /dev/null || true - # sudo rm -rf /usr/share/locale/ - # sudo rm -rf /usr/share/man/ - # sudo rm -rf /usr/share/doc/ + sudo rm -rf /usr/share/locale/ + sudo rm -rf /usr/share/man/ + sudo rm -rf /usr/share/doc/ cp .github/scripts/ciutil ~/.local/bin/