summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:52 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:52 +0000
commit8e06abb2587d06891a84414f09f4910429451bf8 (patch)
treead21706900b938abce23ea8f04230e39c14e47b4 /cmdline/apt-cache.cc
parentad00ae81eb9e1f5384f8fe32879d483c72bbdace (diff)
Class File name change to FileFd
Author: jgg Date: 1998-07-19 04:42:10 GMT Class File name change to FileFd
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index e36bff198..b50211fbb 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.3 1998/07/19 04:22:10 jgg Exp $
+// $Id: apt-cache.cc,v 1.4 1998/07/19 04:42:18 jgg Exp $
/* ######################################################################
apt-cache - Manages the cache file.
@@ -217,7 +217,7 @@ bool DumpAvail(pkgCache &Cache)
return _error->Error("Package file %s is out of sync.",I.FileName());
}
- File PkgF(I.FileName(),File::ReadOnly);
+ FileFd PkgF(I.FileName(),FileFd::ReadOnly);
if (_error->PendingError() == true)
{
delete [] Buffer;
@@ -260,7 +260,7 @@ bool DoAdd(int argc,char *argv[])
string Ver;
// Open the cache
- File CacheF(CacheFile,File::WriteEmpty);
+ FileFd CacheF(CacheFile,FileFd::WriteEmpty);
if (_error->PendingError() == true)
return false;
@@ -279,7 +279,7 @@ bool DoAdd(int argc,char *argv[])
cout << FileName << endl;
// Do the merge
- File TagF(FileName.c_str(),File::ReadOnly);
+ FileFd TagF(FileName.c_str(),FileFd::ReadOnly);
debListParser Parser(TagF);
if (_error->PendingError() == true)
return _error->Error("Problem opening %s",FileName.c_str());
@@ -317,7 +317,7 @@ int main(int argc, char *argv[])
}
// Open the cache file
- File CacheF(CacheFile,File::ReadOnly);
+ FileFd CacheF(CacheFile,FileFd::ReadOnly);
if (_error->PendingError() == true)
break;