diff options
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r-- | cmdline/apt-cdrom.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 0c948098b..aad4dff1a 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cdrom.cc,v 1.37 2001/03/13 05:23:42 jgg Exp $ +// $Id: apt-cdrom.cc,v 1.38 2001/05/27 04:46:43 jgg Exp $ /* ###################################################################### APT CDROM - Tool for handling APT's CDROM database. @@ -34,6 +34,8 @@ #include <stdio.h> /*}}}*/ +using namespace std; + // FindPackages - Find the package files on the CDROM /*{{{*/ // --------------------------------------------------------------------- /* We look over the cdrom for package files. This is a recursive @@ -364,7 +366,7 @@ bool WriteSourceList(string Name,vector<string> &List,bool Source) // Open the stream for reading ifstream F((FileExists(File)?File.c_str():"/dev/null"), - ios::in | ios::nocreate); + ios::in ); if (!F != 0) return _error->Errno("ifstream::ifstream","Opening %s",File.c_str()); |