[zypp-commit] r10887 - in /trunk/libzypp: VERSION.cmake package/libzypp.changes zypp/Package.cc zypp/Package.h
Author: dmacvicar Date: Tue Aug 19 16:47:36 2008 New Revision: 10887 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10887&view=rev Log: + Package::maybeUnsupported Modified: trunk/libzypp/VERSION.cmake trunk/libzypp/package/libzypp.changes trunk/libzypp/zypp/Package.cc trunk/libzypp/zypp/Package.h Modified: trunk/libzypp/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/VERSION.cmake?rev=10887&r1=10886&r2=10887&view=diff ============================================================================== --- trunk/libzypp/VERSION.cmake (original) +++ trunk/libzypp/VERSION.cmake Tue Aug 19 16:47:36 2008 @@ -60,8 +60,8 @@ # SET(LIBZYPP_MAJOR "5") SET(LIBZYPP_COMPATMINOR "5") -SET(LIBZYPP_MINOR "6") -SET(LIBZYPP_PATCH "1") +SET(LIBZYPP_MINOR "7") +SET(LIBZYPP_PATCH "0") # # LAST RELEASED: 5.6.1 (5) # (The number in parenthesis is LIBZYPP_COMPATMINOR) Modified: trunk/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=10887&r1=10886&r2=10887&view=diff ============================================================================== --- trunk/libzypp/package/libzypp.changes (original) +++ trunk/libzypp/package/libzypp.changes Tue Aug 19 16:47:36 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Aug 19 16:36:47 CEST 2008 - dmacvicar@suse.de + +- add Package::maybeUnsupported to remove duplicated + code in clients dealing with Package::vendorSupport + +------------------------------------------------------------------- Di 19. Aug 10:34:39 CEST 2008 - schubi@waerden.suse.de - Reset transaction only if this solvable has no buddy (bnc #417799) Modified: trunk/libzypp/zypp/Package.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Package.cc?rev=10887&r1=10886&r2=10887&view=diff ============================================================================== --- trunk/libzypp/zypp/Package.cc (original) +++ trunk/libzypp/zypp/Package.cc Tue Aug 19 16:47:36 2008 @@ -63,6 +63,12 @@ return VendorSupportUnknown; } + bool Package::maybeUnsupported() const + { + return ( vendorSupport() & ( VendorSupportACC | VendorSupportUnsupported | VendorSupportUnknown ) == ( VendorSupportACC | VendorSupportUnsupported | VendorSupportUnknown ) ); + } + + Changelog Package::changelog() const { Target_Ptr target; Modified: trunk/libzypp/zypp/Package.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Package.h?rev=10887&r1=10886&r2=10887&view=diff ============================================================================== --- trunk/libzypp/zypp/Package.h (original) +++ trunk/libzypp/zypp/Package.h Tue Aug 19 16:47:36 2008 @@ -50,6 +50,12 @@ */ VendorSupportOption vendorSupport() const; + /** + * True if the vendor support for this package + * is unknown or explictly unsupported. + */ + bool maybeUnsupported() const; + /** Get the package change log */ Changelog changelog() const; /** */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org