#include "zypp/source/susetags/PatternTagFileParser.h"
#include "zypp/SourceFactory.h"
+#include "zypp/ZYppCallbacks.h"
using std::endl;
void SuseTagsImpl::createResolvables(Source_Ref source_r)
{
+ callback::SendReport<CreateSourceReport> report;
+
+ report->startData( url() );
+
#warning We use suse instead of <DATADIR> for now
Pathname p = provideFile(_path + "suse/setup/descr/packages");
DBG << "Going to parse " << p << endl;
// parse selections
try {
p = provideFile(_path + "suse/setup/descr/selections");
- } catch (...)
+ } catch (Exception & excpt_r)
{
MIL << "'selections' file not found" << endl;
try {
p = provideFile(_path + "suse/setup/descr/patterns");
- } catch (...)
+ } catch (Exception & excpt_r)
{
MIL << "'patterns' file not found" << endl;
file_found = false;
DBG << "Parsing of " << file << " done" << endl;
}
}
+
+ report->finishData( url(), CreateSourceReport::NO_ERROR, "" );
}
///////////////////////////////////////////////////////////////////
//
#include "zypp/parser/yum/YUMParser.h"
#include "zypp/SourceFactory.h"
+#include "zypp/ZYppCallbacks.h"
#include <fstream>
std::list<YUMRepomdData_Ptr> repo_product;
std::list<YUMRepomdData_Ptr> repo_patches;
+ callback::SendReport<CreateSourceReport> report;
+
+ report->startData( url() );
+
try {
// first read list of all files in the reposotory
Pathname filename = _cache_dir.empty()
{
ERR << "Cannot read patch metadata" << endl;
}
+
+ report->finishData( url(), CreateSourceReport::NO_ERROR, "" );
}
Package::Ptr YUMSourceImpl::createPackage(