- include Pathname.h in Sysconfig.h
authorKlaus Kaempf <kkaempf@suse.de>
Fri, 9 Jun 2006 14:19:45 +0000 (14:19 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Fri, 9 Jun 2006 14:19:45 +0000 (14:19 +0000)
- use Sysconfig.h in MediaCurl.cc

zypp/base/Sysconfig.h
zypp/media/MediaCurl.cc

index 8ff5229..5d511dc 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <string>
 #include <map>
+#include "zypp/Pathname.h"
 
 namespace zypp {
   namespace base {
index 9500f87..08e7b0b 100644 (file)
@@ -15,6 +15,7 @@
 #include "zypp/base/Logger.h"
 #include "zypp/ExternalProgram.h"
 #include "zypp/base/String.h"
+#include "zypp/base/Sysconfig.h"
 
 #include "zypp/media/MediaCurl.h"
 #include "zypp/media/proxyinfo/ProxyInfos.h"
@@ -480,7 +481,7 @@ void MediaCurl::attachTo (bool next)
         if( h_info.isDir()  && h_info.owner() == getuid() &&
             c_info.isFile() && c_info.owner() == getuid())
        {
-         map<string,string> rc_data = proxyinfo::sysconfigRead(curlrcFile);
+         map<string,string> rc_data = base::sysconfig::read( curlrcFile );
 
          map<string,string>::const_iterator it = rc_data.find("proxy-user");
          if (it != rc_data.end())