]> git.saurik.com Git - apt.git/blobdiff - apt-inst/extract.cc
Add INTLLIBS to various parts, so netbsd-i386 works.
[apt.git] / apt-inst / extract.cc
index a3c06c088e712b7013514c86c34467ae8da70ed8..5e3ed5af8380c33c323ae92ed2342854a27f9cae 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: extract.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $
+// $Id: extract.cc,v 1.5 2002/11/11 06:55:50 doogie Exp $
 /* ######################################################################
 
    Archive Extraction Directory Stream
@@ -56,7 +56,9 @@
 #include <unistd.h>
 #include <errno.h>
 #include <dirent.h>
+#include <iostream>
                                                                        /*}}}*/
+using namespace std;
 
 static const char *TempExt = "dpkg-tmp";
 //static const char *NewExt = "dpkg-new";
@@ -473,8 +475,8 @@ bool pkgExtract::CheckDirReplace(string Dir,unsigned int Depth)
       
       // Look up the node
       File = Dir + Dent->d_name;
-      pkgFLCache::NodeIterator Nde = FLCache.GetNode(File.begin(),
-                                                    File.end(),0,false,false);
+      pkgFLCache::NodeIterator Nde = FLCache.GetNode(File.c_str(),
+                                                    File.c_str() + File.length(),0,false,false);
 
       // The file is not owned by this package
       if (Nde.end() != false || Nde.RealPackage() != FLPkg)