ZYPP_CAUGHT(excpt_r);
WAR << "Verifier not found" << endl;
}
+
+ readContentFile();
}
void SuseTagsImpl::createResolvables(Source_Ref source_r)
std::string SuseTagsImpl::unique_id (void) const
{ return _media_id; }
- void SuseTagsImpl::provideProducts(Source_Ref source_r, ResStore &store)
+ void SuseTagsImpl::readContentFile()
{
Pathname p;
bool cache = cacheExists();
ProductMetadataParser p;
p.parse( _content_file, factory.createFrom(this) );
- Product::Ptr product = p.result;
+ _product = p.result;
// data dir is the same, it is determined by the content file
_data_dir = _path + p.prodImpl->_data_dir;
else
_descr_dir = _orig_descr_dir;
- MIL << "Product: " << product->summary() << endl;
- store.insert( product );
+ MIL << "Read product: " << _product->summary() << endl;
+
_prodImpl = p.prodImpl;
_autorefresh = p.volatile_content && media::MediaAccess::canBeVolatile( _url );
}
}
}
+ void SuseTagsImpl::provideProducts(Source_Ref source_r, ResStore &store)
+ {
+ MIL << "Adding product: " << _product->summary() << " to the store" << endl;
+ store.insert( _product );
+ }
+
void SuseTagsImpl::verifyFile( const Pathname &path, const std::string &key)
{
// for old products, we dont check anything.
#include "zypp/Pathname.h"
#include "zypp/source/SourceImpl.h"
+#include "zypp/Product.h"
#include "zypp/source/susetags/SuseTagsProductImpl.h"
///////////////////////////////////////////////////////////////////
*/
virtual void factoryInit();
+ void readContentFile();
+
void provideProducts(Source_Ref source_r, ResStore& store);
void providePackages(Source_Ref source_r, ResStore& store);
void provideSelections(Source_Ref source_r, ResStore& store);
* we need it to access the checksums if we are in verify mode
*/
detail::ResImplTraits<SuseTagsProductImpl>::Ptr _prodImpl;
+ Product::Ptr _product;
};
///////////////////////////////////////////////////////////////////