///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
- SEC << zypp::getZYpp()->diskUsage() << endl;
-
- for_( it, pool.begin(), pool.end() )
- {
- //MIL << *it << endl;
- //DBG << (*it)->diskusage() << endl;
- }
-
- PoolItem pu ( getPi<Package>("amarok") );
- PoolItem pi ( getPi<Package>("amarok",Edition("1.4.7-37")) );
-
- pi.status().setTransact( true, ResStatus::USER );
- SEC << zypp::getZYpp()->diskUsage() << endl;
-
- pu.status().setTransact( true, ResStatus::USER );
- SEC << zypp::getZYpp()->diskUsage() << endl;
-
-
- ///////////////////////////////////////////////////////////////////
- INT << "===[END]============================================" << endl << endl;
- zypp::base::LogControl::instance().logNothing();
- return 0;
-
if ( 0 )
{
PoolItem pi ( getPi<Package>("amarok") );
}
}
- SEC << zypp::getZYpp()->diskUsage() << endl;
+ //SEC << zypp::getZYpp()->diskUsage() << endl;
//vdumpPoolStats( USR << "Pool:"<< endl, pool.begin(), pool.end() ) << endl;
//waitForInput();
-------------------------------------------------------------------
+Wed Jul 9 12:13:58 CEST 2008 - ma@suse.de
+
+- Provide Package::url() if available in solv file. (bnc #402434)
+- revision 10523
+
+-------------------------------------------------------------------
Mon Jul 7 13:39:09 CEST 2008 - schubi@suse.de
-- Do not update an already updated package Bug 400422
-- Revision 10504
+- Do not update an already updated package (bnc #400422)
+- revision 10504
-------------------------------------------------------------------
Fri Jul 4 17:19:24 CEST 2008 - ma@suse.de
Changelog Package::changelog() const
{
Target_Ptr target;
- try
+ try
{
target = getZYpp()->target();
}
ERR << "Target not initialized. Changelog is not available." << std::endl;
return Changelog();
}
-
-
+
+
if ( repository().isSystemRepo() )
{
target::rpm::RpmHeader::constPtr header;
return Changelog();
}
- /** */
std::string Package::buildhost() const
{ return lookupStrAttribute( sat::SolvAttr::buildhost ); }
- /** */
std::string Package::distribution() const
{ return lookupStrAttribute( sat::SolvAttr::distribution ); }
- /** */
std::string Package::license() const
{ return lookupStrAttribute( sat::SolvAttr::license ); }
- /** */
std::string Package::packager() const
{ return lookupStrAttribute( sat::SolvAttr::packager ); }
- /** */
std::string Package::group() const
{ return lookupStrAttribute( sat::SolvAttr::group ); }
Package::Keywords Package::keywords() const
{ return Keywords( sat::SolvAttr::keywords, satSolvable() ); }
- /** Don't ship it as class Url, because it might be
- * in fact anything but a legal Url. */
-#warning DUMMY url
std::string Package::url() const
- { return string(); }
+ { return lookupStrAttribute( sat::SolvAttr::url ); }
- /** */
ByteCount Package::sourcesize() const
{ return lookupNumAttribute( sat::SolvAttr::sourcesize ); }
}
std::list<std::string> Package::filenames() const
- {
- std::list<std::string> files;
+ {
+ std::list<std::string> files;
sat::LookupAttr q( sat::SolvAttr::filelist, *this );
for_( it, q.begin(), q.end() )
{
OnMediaLocation Package::location() const
{ return lookupLocation(); }
- std::string Package::sourcePkgName() const
- {
+ std::string Package::sourcePkgName() const
+ {
// no id means same as package
- sat::detail::IdType id( lookupIdAttribute( sat::SolvAttr::sourcename ) );
- id = lookupIdAttribute(sat::SolvAttr::sourcearch);
- return id ? IdString( id ).asString() : name();
- }
+ sat::detail::IdType id( lookupIdAttribute( sat::SolvAttr::sourcename ) );
+ id = lookupIdAttribute(sat::SolvAttr::sourcearch);
+ return id ? IdString( id ).asString() : name();
+ }
- Edition Package::sourcePkgEdition() const
- {
+ Edition Package::sourcePkgEdition() const
+ {
// no id means same as package
- sat::detail::IdType id( lookupIdAttribute( sat::SolvAttr::sourceevr ) );
- return id ? Edition( id ) : edition();
- }
+ sat::detail::IdType id( lookupIdAttribute( sat::SolvAttr::sourceevr ) );
+ return id ? Edition( id ) : edition();
+ }
/////////////////////////////////////////////////////////////////
} // namespace zypp
static const SolvAttr noAttr;
/** \name special solvable attributes which are part of the ::Solvable struct
- *
+ *
* \todo can these be used in LookupAttr currently?
- * \todo add dependencies here? Or move all this stuff elsewhere?
+ * \todo add dependencies here? Or move all this stuff elsewhere?
*/
//@{
static const SolvAttr name;
static const SolvAttr sourcename;
static const SolvAttr sourceevr;
static const SolvAttr headerend;
+ static const SolvAttr url;
//@}
/** \name patch */