From 7a7fa5f07e59bd17415cb0321d1f98527c2cfea4 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:25 +0000 Subject: apt-get update works now Author: jgg Date: 1998-11-12 04:10:52 GMT apt-get update works now --- cmdline/apt-get.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index d9aa9cebe..2ed05b8aa 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.6 1998/11/11 23:45:56 jgg Exp $ +// $Id: apt-get.cc,v 1.7 1998/11/12 04:10:56 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -472,6 +472,11 @@ bool DoUpdate(CommandLine &) if (Fetcher.Run() == false) return false; + // Clean out any old list files + if (Fetcher.Clean(_config->FindDir("Dir::State::lists")) == false || + Fetcher.Clean(_config->FindDir("Dir::State::lists") + "partial/") == false) + return false; + // Prepare the cache. CacheFile Cache; if (Cache.Open() == false) -- cgit v1.2.3-70-g09d2