From 2cb5f8d25e41e881bd5f89b1a31b1f06460f1d6c Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Thu, 17 Sep 2009 09:52:15 +0200 Subject: [PATCH] pre/postinst: do not bother with apt cache any more, network is fast enough now --- postinst-setup | 6 ------ preinst-backup | 6 ------ 2 files changed, 12 deletions(-) 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/ - -- 2.39.5