Check whether there actually are temporary packages

This commit is contained in:
2016-04-20 22:23:30 +01:00
parent eb1f879415
commit ceb6b829df

View File

@@ -4,7 +4,7 @@ source /build/config
set -x set -x
## Remove temporary packages for minimal builds ## Remove temporary packages for minimal builds
if [ $MODE == "minimal" ]; then if [ $MODE == "minimal" ] && [ -f /build/temporary ]; then
cat /build/temporary cat /build/temporary
apt_remove $(cat /build/temporary) apt_remove $(cat /build/temporary)
fi fi
@@ -14,4 +14,4 @@ apt-get clean
rm -rf /build rm -rf /build
rm -rf /tmp/* /var/tmp/* rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup