]> piware.de Git - bin.git/commitdiff
pre/postinst: do not bother with apt cache any more, network is fast enough now
authormartin@piware.de <>
Thu, 17 Sep 2009 07:52:15 +0000 (09:52 +0200)
committermartin@piware.de <>
Thu, 17 Sep 2009 07:52:15 +0000 (09:52 +0200)
postinst-setup
preinst-backup

index 079cc5d086da69d6e95774e2e5ff0c7eecfecd7c..5b69f88b4d1000e1b545413465b1f2866ddfa42e 100755 (executable)
@@ -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
index 11cbf56dbf74467ff40d6019418b1f2a83e83d97..c19559ddf0d33cbab164546dc4921b145b19508b 100755 (executable)
@@ -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/
-