--- fai-mirror 2010-11-02 13:33:34.000000000 +0100 +++ /home/lange/fai-mirror 2010-11-05 11:24:21.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/bash -# $Id: fai-mirror 6024 2010-08-17 12:57:25Z mika $ +# $Id$ #********************************************************************* # # fai-mirror -- create and manage a partial mirror for FAI @@ -99,6 +99,9 @@ -o Aptitude::CmdLine::Ignore-Trust-Violations=yes\ -o APT::Get::AllowUnauthenticated=true \ -o DPkg::force-conflicts::=yes \ + -o Dir::State=$aptcache/var/lib/apt \ + -o Dir::Log=$aptcache/var/log/apt \ + -o Dir::State::extended_states=$aptcache/var/lib/apt/lists/extended_states \ -o Dir::State::status=$statefile \ -o APT::Get::Force-Yes=true \ -o Dir::Cache=$aptcache/var/cache/apt \ @@ -117,7 +120,7 @@ # we only need some empty dirs set -e - mkdir -p $archivedir/partial $aptcache/etc/apt $aptcache/var/lib/apt/lists/partial + mkdir -p $archivedir/partial $aptcache/etc/apt/preferences.d $aptcache/var/lib/apt/lists/partial $aptcache/var/log/apt > $statefile set +e }