{
ZYpp::Ptr z = getZYpp();
- PublicKey key("repomd.xml.key");
- cout << key << endl;
+ //PublicKey key("repomd.xml.key");
+ //cout << key << endl;
+ z->initializeTarget("/");
}
catch ( const Exception &e )
using namespace boost::filesystem;
+using namespace zypp::parser;
+
+void progress( int p )
+{
+ cout << p << "%" << endl;
+}
+
/*
=Type: UnitedLinux
=URL: ftp://dist.suse.de//next-i386
{
source::SourceInfo result;
+ OldPMSourceParser( ParserProgress::Ptr pp ) : tagfile::TagFileParser( pp )
+ {
+
+ }
+
virtual void beginParse()
{
}
{
DBG << dir_itr->leaf() << std::endl;
Pathname full(Pathname(dir_path.string()) + dir_itr->leaf() + "/DESCRIPTION/description");
- OldPMSourceParser parser;
+ ParserProgress::Ptr pptr;
+ pptr.reset( new ParserProgress( &progress ) );
+ OldPMSourceParser parser( pptr );
MIL << "Going to parse " << full << std::endl;
parser.parse(full);
backend.storeSource(parser.result);
## ##################################################
+zmartincludedir = $(pkgincludedir)/source
+
+zmartinclude_HEADERS = \
+ AliveCursor.h \
+ zmart-keyring-callbacks.h \
+ zmart-rpm-callbacks.h \
+ zmart-source-callbacks.h
+
INCLUDES = -I$(top_srcdir)/tools/zmart -I$(oldincludedir)/libxml2
AM_LDFLAGS =