diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:25 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:25 +0000 |
commit | 7a7fa5f07e59bd17415cb0321d1f98527c2cfea4 (patch) | |
tree | 4bbfc0b595b988d83e7fd69e9e413843689ffb2d /cmdline | |
parent | 031aa37554d04be406588fb67807124b7f35d4c4 (diff) |
apt-get update works now
Author: jgg
Date: 1998-11-12 04:10:52 GMT
apt-get update works now
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 7 |
1 files changed, 6 insertions, 1 deletions
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) |