From: martin@piware.de <> Date: Thu, 17 Sep 2009 07:52:15 +0000 (+0200) Subject: pre/postinst: do not bother with apt cache any more, network is fast enough now X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=commitdiff_plain;h=2cb5f8d25e41e881bd5f89b1a31b1f06460f1d6c pre/postinst: do not bother with apt cache any more, network is fast enough now --- diff --git a/postinst-setup b/postinst-setup index 079cc5d..5b69f88 100755 --- a/postinst-setup +++ b/postinst-setup @@ -61,12 +61,6 @@ fi newaliases /etc/init.d/postfix restart -# copy apt cache -if [ -d /home/aptcache ]; then - find /home/aptcache/ -name "*.deb" -exec cp '{}' /var/cache/apt/archives/ \; - rm -rf /home/aptcache -fi - # other setup dpkg -i /home/martin/download/libdvdcss2_*deb || true locale-gen ru_RU ru_RU.UTF-8 diff --git a/preinst-backup b/preinst-backup index 11cbf56..c19559d 100755 --- a/preinst-backup +++ b/preinst-backup @@ -14,9 +14,3 @@ if [ -d /home/martin/backup ]; then exit 1 fi [ ! -d /var/backups/martin/ ] || cp -a /var/backups/martin/ /home/martin/backup - -apt-get autoclean -mkdir -p /home/aptcache -rm -rf /home/aptcache/* -cp /var/cache/apt/archives/*.deb /home/aptcache/ -