summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:05 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:05 +0000
commit303a1703ca47c78f2b5ff6887ba6a10907465874 (patch)
tree34e4879065bb874401dee419c3cce64288a7f134 /cmdline/apt-cache.cc
parent0118833a3b3e65ad7296863aa7d49574eb615f83 (diff)
Added the remove command
Author: jgg Date: 1998-10-19 23:45:35 GMT Added the remove command
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index c4a6c7a42..531744546 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cache.cc,v 1.9 1998/10/02 04:39:55 jgg Exp $
+// $Id: apt-cache.cc,v 1.10 1998/10/19 23:45:35 jgg Exp $
/* ######################################################################
apt-cache - Manages the cache files
@@ -222,7 +222,7 @@ bool DoAdd(CommandLine &CmdL)
return _error->Error("You must give at least one file name");
// Open the cache
- FileFd CacheF(_config->FindDir("Dir::Cache::srcpkgcache"),FileFd::WriteAny);
+ FileFd CacheF(_config->FindFile("Dir::Cache::srcpkgcache"),FileFd::WriteAny);
if (_error->PendingError() == true)
return false;
@@ -284,7 +284,7 @@ int ShowHelp()
cout << " apt-cache [options] showpkg pkg1 [pkg2 ...]" << endl;
cout << endl;
cout << "apt-cache is a low-level tool used to manipulate APT's binary" << endl;
- cout << "cache files stored in " << _config->FindDir("Dir::Cache") << endl;
+ cout << "cache files stored in " << _config->FindFile("Dir::Cache") << endl;
cout << "It is not ment for ordinary use only as a debug aide." << endl;
cout << endl;
cout << "Commands:" << endl;
@@ -297,8 +297,8 @@ int ShowHelp()
cout << endl;
cout << "Options:" << endl;
cout << " -h This help text." << endl;
- cout << " -p=? The package cache. [" << _config->FindDir("Dir::Cache::pkgcache") << ']' << endl;
- cout << " -s=? The source cache. [" << _config->FindDir("Dir::Cache::srcpkgcache") << ']' << endl;
+ cout << " -p=? The package cache. [" << _config->FindFile("Dir::Cache::pkgcache") << ']' << endl;
+ cout << " -s=? The source cache. [" << _config->FindFile("Dir::Cache::srcpkgcache") << ']' << endl;
cout << " -q Disable progress indicator. " << endl;
cout << " -c=? Read this configuration file" << endl;
cout << " -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
@@ -358,7 +358,7 @@ int main(int argc,const char *argv[])
}
// Open the cache file
- FileFd CacheF(_config->FindDir("Dir::Cache::pkgcache"),FileFd::ReadOnly);
+ FileFd CacheF(_config->FindFile("Dir::Cache::pkgcache"),FileFd::ReadOnly);
if (_error->PendingError() == true)
break;