Author: kkaempf Date: Wed Apr 9 17:57:46 2008 New Revision: 9495 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9495&view=rev Log: use proper attributes for the update references Modified: trunk/libzypp/zypp/Patch.cc trunk/libzypp/zypp/sat/SolvAttr.cc trunk/libzypp/zypp/sat/SolvAttr.h Modified: trunk/libzypp/zypp/Patch.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Patch.cc?rev=9495&r1=9494&r2=9495&view=diff ============================================================================== --- trunk/libzypp/zypp/Patch.cc (original) +++ trunk/libzypp/zypp/Patch.cc Wed Apr 9 17:57:46 2008 @@ -86,13 +86,13 @@ Patch::ReferenceIterator::ReferenceIterator( const sat::Solvable & val_r ) { - base_reference() = sat::LookupAttr( sat::SolvAttr("update::referenceid"), + base_reference() = sat::LookupAttr( sat::SolvAttr::updateReferenceId, val_r ).begin(); - _hrefit = sat::LookupAttr( sat::SolvAttr("update::referencehref"), + _hrefit = sat::LookupAttr( sat::SolvAttr::updateReferenceHref, val_r ).begin(); - _titleit = sat::LookupAttr( sat::SolvAttr("update::referencetitle"), + _titleit = sat::LookupAttr( sat::SolvAttr::updateReferenceTitle, val_r ).begin(); - _typeit = sat::LookupAttr( sat::SolvAttr("update::referencetype"), + _typeit = sat::LookupAttr( sat::SolvAttr::updateReferenceType, val_r ).begin(); } Modified: trunk/libzypp/zypp/sat/SolvAttr.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SolvAttr.cc?rev=9495&r1=9494&r2=9495&view=diff ============================================================================== --- trunk/libzypp/zypp/sat/SolvAttr.cc (original) +++ trunk/libzypp/zypp/sat/SolvAttr.cc Wed Apr 9 17:57:46 2008 @@ -70,6 +70,15 @@ const SolvAttr SolvAttr::patchcategory( SOLVABLE_PATCHCATEGORY ); const SolvAttr SolvAttr::needReboot ( UPDATE_REBOOT ); const SolvAttr SolvAttr::needRestart ( UPDATE_RESTART ); + const SolvAttr SolvAttr::updateCollectionName ( UPDATE_COLLECTION_NAME ); + const SolvAttr SolvAttr::updateCollectionEvr ( UPDATE_COLLECTION_EVR ); + const SolvAttr SolvAttr::updateCollectionArch ( UPDATE_COLLECTION_ARCH ); + const SolvAttr SolvAttr::updateCollectionFilename ( UPDATE_COLLECTION_FILENAME ); + const SolvAttr SolvAttr::updateCollectionFlags ( UPDATE_COLLECTION_FLAGS ); + const SolvAttr SolvAttr::updateReferenceType ( UPDATE_REFERENCE_TYPE ); + const SolvAttr SolvAttr::updateReferenceHref ( UPDATE_REFERENCE_HREF ); + const SolvAttr SolvAttr::updateReferenceId ( UPDATE_REFERENCE_ID ); + const SolvAttr SolvAttr::updateReferenceTitle ( UPDATE_REFERENCE_TITLE ); //pattern const SolvAttr SolvAttr::isvisible ( SOLVABLE_ISVISIBLE ); Modified: trunk/libzypp/zypp/sat/SolvAttr.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SolvAttr.h?rev=9495&r1=9494&r2=9495&view=diff ============================================================================== --- trunk/libzypp/zypp/sat/SolvAttr.h (original) +++ trunk/libzypp/zypp/sat/SolvAttr.h Wed Apr 9 17:57:46 2008 @@ -78,8 +78,17 @@ static const SolvAttr patchcategory; static const SolvAttr needReboot; static const SolvAttr needRestart; - - // patern + static const SolvAttr updateCollectionName; + static const SolvAttr updateCollectionEvr; + static const SolvAttr updateCollectionArch; + static const SolvAttr updateCollectionFilename; + static const SolvAttr updateCollectionFlags; + static const SolvAttr updateReferenceType; + static const SolvAttr updateReferenceHref; + static const SolvAttr updateReferenceId; + static const SolvAttr updateReferenceTitle; + + // pattern static const SolvAttr isvisible; static const SolvAttr icon; static const SolvAttr order; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org