\---------------------------------------------------------------------*/
#include <fstream>
-#include "zypp/base/Logger.h"
#include "zypp/repo/SUSEMediaVerifier.h"
using namespace std;
std::ifstream str(path_r.asString().c_str());
std::string vendor;
std::string id;
-
+
if ( str )
{
getline(str, _media_vendor);
return true;
Pathname media_file = "/media." + str::numstring(_media_nr) + "/media";
- ref->provideFile (media_file, 0);
+ ref->provideFile (media_file);
media_file = ref->localPath(media_file);
std::ifstream str(media_file.asString().c_str());
std::string vendor;
std::string id;
+#warning check the stream status
getline(str, vendor);
getline(str, id);
- bool ret = ( vendor == _media_vendor && id == _media_id );
- if ( !ret ) {
- DBG << "cached vendor: " << _media_vendor << endl;
- DBG << "repo vendor: " << vendor << endl;
- DBG << "cached id: " << _media_id << endl;
- DBG << "repo id: " << id << endl;
- }
- return ret;
+ return (vendor == _media_vendor && id == _media_id );
}
}