#include <iostream>
#include <vector>
#include <time.h>
-#include "zypp/repo/RepoMirrorList.h"
-#include "zypp/media/MetaLinkParser.h"
-#include "zypp/MediaSetAccess.h"
-#include "zypp/base/LogTools.h"
-#include "zypp/ZConfig.h"
-#include "zypp/PathInfo.h"
+#include <zypp/repo/RepoMirrorList.h>
+#include <zypp/media/MetaLinkParser.h>
+#include <zypp/MediaSetAccess.h>
+#include <zypp/base/LogTools.h>
+#include <zypp/ZConfig.h>
+#include <zypp/PathInfo.h>
-using namespace std;
///////////////////////////////////////////////////////////////////
namespace zypp
{
InputStream tmpfstream (tmpfile);
std::vector<Url> my_urls;
- string tmpurl;
+ std::string tmpurl;
while (getline(tmpfstream.stream(), tmpurl))
{
if ( tmpurl[0] == '#' )
USR << url_r << " " << listfile_r << endl;
std::vector<Url> mirrorurls;
- if ( mirrorListForceMetalink_r || url_r.asString().find( "/metalink" ) != string::npos )
+ if ( mirrorListForceMetalink_r || url_r.asString().find( "/metalink" ) != std::string::npos )
mirrorurls = RepoMirrorListParseXML( listfile_r );
else
mirrorurls = RepoMirrorListParseTXT( listfile_r );
if ( murl.getScheme() != "rsync" )
{
size_t delpos = murl.getPathName().find("repodata/repomd.xml");
- if( delpos != string::npos )
+ if( delpos != std::string::npos )
{
murl.setPathName( murl.getPathName().erase(delpos) );
}
{
// have cachedir
Pathname cachefile( metadatapath_r );
- if ( mirrorListForceMetalink_r || url_r.asString().find( "/metalink" ) != string::npos )
+ if ( mirrorListForceMetalink_r || url_r.asString().find( "/metalink" ) != std::string::npos )
cachefile /= "mirrorlist.xml";
else
cachefile /= "mirrorlist.txt";