[zypp-commit] r5991 - in /branches/REFACTORING-10_3/libzypp/zypp/cache: Attribute.h CacheAttributes.h
Author: mlandres Date: Thu Jul 12 15:15:05 2007 New Revision: 5991 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5991&view=rev Log: define sharable attributes Modified: branches/REFACTORING-10_3/libzypp/zypp/cache/Attribute.h branches/REFACTORING-10_3/libzypp/zypp/cache/CacheAttributes.h Modified: branches/REFACTORING-10_3/libzypp/zypp/cache/Attribute.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/cache/Attribute.h?rev=5991&r1=5990&r2=5991&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/cache/Attribute.h (original) +++ branches/REFACTORING-10_3/libzypp/zypp/cache/Attribute.h Thu Jul 12 15:15:05 2007 @@ -31,8 +31,11 @@ * \ref Attribute defines the klass and name value \ref CacheStore * uses to write an attribute to the database. The same pair is * required to query the attributes value. - * \c evalShared tells whether the \c shareDataWith attribute - * should be evaluated when doing a query for this attribute.. + * + * \c evalShared tells whether the resolvables \c :shared_id should + * be evaluated in queries, in case no attribute value is defined. + * Some attributes like e.g. \c Summary can be shared between packages + * that differ in architecture only. * */ struct Attribute { @@ -40,8 +43,9 @@ Attribute( const std::string & klass_r, const std::string & name_r, ShareType shareType_r = UNIQUE ) - : klass(klass_r), name(name_r) - , evalShared ( shareType_r == SHARED ) + : klass (klass_r) + , name (name_r) + , evalShared( shareType_r == SHARED ) {} std::string klass; std::string name; Modified: branches/REFACTORING-10_3/libzypp/zypp/cache/CacheAttributes.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/REFACTORING-10_3/libzypp/zypp/cache/CacheAttributes.h?rev=5991&r1=5990&r2=5991&view=diff ============================================================================== --- branches/REFACTORING-10_3/libzypp/zypp/cache/CacheAttributes.h (original) +++ branches/REFACTORING-10_3/libzypp/zypp/cache/CacheAttributes.h Thu Jul 12 15:15:05 2007 @@ -27,78 +27,74 @@ */ //@{ /////////////////////////////////////////////////////////////////// - inline const Attribute & attrMessageText() { static Attribute a("Message","text"); return a; } + inline const Attribute & attrMessageText() { static Attribute a("Message","text"); return a; } /////////////////////////////////////////////////////////////////// - inline const Attribute & attrPackageAuthors() { static Attribute a("Package","authors"); return a; } - inline const Attribute & attrPackageBuildhost() { static Attribute a("Package","buildhost"); return a; } - inline const Attribute & attrPackageChecksumType() { static Attribute a("Package","checksumType"); return a; } - inline const Attribute & attrPackageDistribution() { static Attribute a("Package","distribution"); return a; } - inline const Attribute & attrPackageGroup() { static Attribute a("Package","group"); return a; } - inline const Attribute & attrPackagePackager() { static Attribute a("Package","packager"); return a; } - inline const Attribute & attrPackageKeywords() { static Attribute a("Package","keywords"); return a; } - inline const Attribute & attrPackageLicense() { static Attribute a("Package","license"); return a; } - inline const Attribute & attrPackageOperatingSystem() { static Attribute a("Package","operatingSystem"); return a; } - inline const Attribute & attrPackagePostin() { static Attribute a("Package","postin"); return a; } - inline const Attribute & attrPackagePostun() { static Attribute a("Package","postun"); return a; } - inline const Attribute & attrPackagePrein() { static Attribute a("Package","prein"); return a; } - inline const Attribute & attrPackagePreun() { static Attribute a("Package","preun"); return a; } - inline const Attribute & attrPackageUrl() { static Attribute a("Package","url"); return a; } - inline const Attribute & attrPackageLocationFilename() { static Attribute a("Package","locationFilename"); return a; } + inline const Attribute & attrPackageAuthors() { static Attribute a("Package","authors", Attribute::SHARED); return a; } + inline const Attribute & attrPackageBuildhost() { static Attribute a("Package","buildhost"); return a; } + inline const Attribute & attrPackageChecksumType() { static Attribute a("Package","checksumType"); return a; } + inline const Attribute & attrPackageDistribution() { static Attribute a("Package","distribution"); return a; } + inline const Attribute & attrPackageGroup() { static Attribute a("Package","group"); return a; } + inline const Attribute & attrPackagePackager() { static Attribute a("Package","packager"); return a; } + inline const Attribute & attrPackageKeywords() { static Attribute a("Package","keywords"); return a; } + inline const Attribute & attrPackageLicense() { static Attribute a("Package","license"); return a; } + inline const Attribute & attrPackageOperatingSystem() { static Attribute a("Package","operatingSystem"); return a; } + inline const Attribute & attrPackagePostin() { static Attribute a("Package","postin"); return a; } + inline const Attribute & attrPackagePostun() { static Attribute a("Package","postun"); return a; } + inline const Attribute & attrPackagePrein() { static Attribute a("Package","prein"); return a; } + inline const Attribute & attrPackagePreun() { static Attribute a("Package","preun"); return a; } + inline const Attribute & attrPackageUrl() { static Attribute a("Package","url"); return a; } + inline const Attribute & attrPackageLocationFilename() { static Attribute a("Package","locationFilename"); return a; } inline const Attribute & attrPackageLocationDownloadSize() { static Attribute a("Package","locationDownloadSize"); return a; } - inline const Attribute & attrPackageLocationChecksum() { static Attribute a("Package","locationChecksum"); return a; } + inline const Attribute & attrPackageLocationChecksum() { static Attribute a("Package","locationChecksum"); return a; } inline const Attribute & attrPackageLocationChecksumType() { static Attribute a("Package","locationChecksumType"); return a; } - inline const Attribute & attrPackageLocationMediaNr() { static Attribute a("Package","locationMediaNr"); return a; } - - /////////////////////////////////////////////////////////////////// - inline const Attribute & attrPatchAffectsPkgManager() { static Attribute a("Patch","affectsPkgManager"); return a; } - inline const Attribute & attrPatchCategory() { static Attribute a("Patch","category"); return a; } - inline const Attribute & attrPatchRebootNeeded() { static Attribute a("Patch","rebootNeeded"); return a; } - inline const Attribute & attrPatchTimestamp() { static Attribute a("Patch","timestamp"); return a; } - /////////////////////////////////////////////////////////////////// - inline const Attribute & attrPatternCategory() { static Attribute a("Pattern","category"); return a; } - inline const Attribute & attrPatternIcon() { static Attribute a("Pattern","icon"); return a; } - inline const Attribute & attrPatternIsDefault() { static Attribute a("Pattern","isDefault"); return a; } - inline const Attribute & attrPatternOrder() { static Attribute a("Pattern","order"); return a; } - inline const Attribute & attrPatternUserVisible() { static Attribute a("Pattern","userVisible"); return a; } - /////////////////////////////////////////////////////////////////// - inline const Attribute & attrProductDistributionEdition() { static Attribute a("Product","distributionEdition"); return a; } - inline const Attribute & attrProductDistributionName() { static Attribute a("Product","distributionName"); return a; } - inline const Attribute & attrProductExtraUrls() { static Attribute a("Product","extraUrls"); return a; } - inline const Attribute & attrProductFlags() { static Attribute a("Product","flags"); return a; } - inline const Attribute & attrProductLongName() { static Attribute a("Product","longName"); return a; } - inline const Attribute & attrProductOptionalUrls() { static Attribute a("Product","optionalUrls"); return a; } - inline const Attribute & attrProductReleasenotesUrl() { static Attribute a("Product","releasenotesUrl"); return a; } - inline const Attribute & attrProductShortName() { static Attribute a("Product","shortName"); return a; } - inline const Attribute & attrProductUpdateUrls() { static Attribute a("Product","updateUrls"); return a; } - /////////////////////////////////////////////////////////////////// - - inline const Attribute & attrResObjectArchiveSize() { static Attribute a("ResObject","archiveSize"); return a; } - inline const Attribute & attrResObjectBuildTime() { static Attribute a("ResObject","buildTime"); return a; } - inline const Attribute & attrResObjectDelnotify() { static Attribute a("ResObject","delnotify"); return a; } - inline const Attribute & attrResObjectDescription() { static Attribute a("ResObject","description"); return a; } - inline const Attribute & attrResObjectInsnotify() { static Attribute a("ResObject","insnotify"); return a; } - inline const Attribute & attrResObjectInstallOnly() { static Attribute a("ResObject","installOnly"); return a; } - inline const Attribute & attrResObjectInstalledSize() { static Attribute a("ResObject","installedSize"); return a; } - inline const Attribute & attrResObjectLicenseToConfirm() { static Attribute a("ResObject","licenseToConfirm"); return a; } - inline const Attribute & attrResObjectshareDataWith() { static Attribute a("ResObject","shareDataWith"); return a; } - inline const Attribute & attrResObjectSummary() { static Attribute a("ResObject","summary"); return a; } - inline const Attribute & attrResObjectVendor() { static Attribute a("ResObject","vendor"); return a; } - + inline const Attribute & attrPackageLocationMediaNr() { static Attribute a("Package","locationMediaNr"); return a; } /////////////////////////////////////////////////////////////////// - inline const Attribute & attrScriptDoScript() { static Attribute a("Script","doScript"); return a; } - inline const Attribute & attrScriptDoScriptChecksum() { static Attribute a("Script","doScriptChecksum"); return a; } - inline const Attribute & attrScriptDoScriptChecksumType() { static Attribute a("Script","doScriptChecksumType"); return a; } - inline const Attribute & attrScriptDoScriptLocation() { static Attribute a("Script","doScriptLocation"); return a; } - inline const Attribute & attrScriptUndoScript() { static Attribute a("Script","undoScript"); return a; } - inline const Attribute & attrScriptUndoScriptChecksum() { static Attribute a("Script","undoScriptChecksum"); return a; } - inline const Attribute & attrScriptUndoScriptChecksumType(){ static Attribute a("Script","undoScriptChecksumType"); return a; } - inline const Attribute & attrScriptUndoScriptLocation() { static Attribute a("Script","undoScriptLocation"); return a; } + inline const Attribute & attrPatchAffectsPkgManager() { static Attribute a("Patch","affectsPkgManager"); return a; } + inline const Attribute & attrPatchCategory() { static Attribute a("Patch","category"); return a; } + inline const Attribute & attrPatchRebootNeeded() { static Attribute a("Patch","rebootNeeded"); return a; } + inline const Attribute & attrPatchTimestamp() { static Attribute a("Patch","timestamp"); return a; } + /////////////////////////////////////////////////////////////////// + inline const Attribute & attrPatternCategory() { static Attribute a("Pattern","category"); return a; } + inline const Attribute & attrPatternIcon() { static Attribute a("Pattern","icon"); return a; } + inline const Attribute & attrPatternIsDefault() { static Attribute a("Pattern","isDefault"); return a; } + inline const Attribute & attrPatternOrder() { static Attribute a("Pattern","order"); return a; } + inline const Attribute & attrPatternUserVisible() { static Attribute a("Pattern","userVisible"); return a; } + /////////////////////////////////////////////////////////////////// + inline const Attribute & attrProductDistributionEdition() { static Attribute a("Product","distributionEdition"); return a; } + inline const Attribute & attrProductDistributionName() { static Attribute a("Product","distributionName"); return a; } + inline const Attribute & attrProductExtraUrls() { static Attribute a("Product","extraUrls"); return a; } + inline const Attribute & attrProductFlags() { static Attribute a("Product","flags"); return a; } + inline const Attribute & attrProductLongName() { static Attribute a("Product","longName"); return a; } + inline const Attribute & attrProductOptionalUrls() { static Attribute a("Product","optionalUrls"); return a; } + inline const Attribute & attrProductReleasenotesUrl() { static Attribute a("Product","releasenotesUrl"); return a; } + inline const Attribute & attrProductShortName() { static Attribute a("Product","shortName"); return a; } + inline const Attribute & attrProductUpdateUrls() { static Attribute a("Product","updateUrls"); return a; } + /////////////////////////////////////////////////////////////////// + inline const Attribute & attrResObjectArchiveSize() { static Attribute a("ResObject","archiveSize"); return a; } + inline const Attribute & attrResObjectBuildTime() { static Attribute a("ResObject","buildTime"); return a; } + inline const Attribute & attrResObjectDelnotify() { static Attribute a("ResObject","delnotify", Attribute::SHARED); return a; } + inline const Attribute & attrResObjectDescription() { static Attribute a("ResObject","description", Attribute::SHARED); return a; } + inline const Attribute & attrResObjectInsnotify() { static Attribute a("ResObject","insnotify", Attribute::SHARED); return a; } + inline const Attribute & attrResObjectInstallOnly() { static Attribute a("ResObject","installOnly"); return a; } + inline const Attribute & attrResObjectInstalledSize() { static Attribute a("ResObject","installedSize"); return a; } + inline const Attribute & attrResObjectLicenseToConfirm() { static Attribute a("ResObject","licenseToConfirm", Attribute::SHARED); return a; } + inline const Attribute & attrResObjectSummary() { static Attribute a("ResObject","summary", Attribute::SHARED); return a; } + inline const Attribute & attrResObjectVendor() { static Attribute a("ResObject","vendor"); return a; } + /////////////////////////////////////////////////////////////////// + inline const Attribute & attrScriptDoScript() { static Attribute a("Script","doScript"); return a; } + inline const Attribute & attrScriptDoScriptChecksum() { static Attribute a("Script","doScriptChecksum"); return a; } + inline const Attribute & attrScriptDoScriptChecksumType() { static Attribute a("Script","doScriptChecksumType"); return a; } + inline const Attribute & attrScriptDoScriptLocation() { static Attribute a("Script","doScriptLocation"); return a; } + inline const Attribute & attrScriptUndoScript() { static Attribute a("Script","undoScript"); return a; } + inline const Attribute & attrScriptUndoScriptChecksum() { static Attribute a("Script","undoScriptChecksum"); return a; } + inline const Attribute & attrScriptUndoScriptChecksumType(){ static Attribute a("Script","undoScriptChecksumType"); return a; } + inline const Attribute & attrScriptUndoScriptLocation() { static Attribute a("Script","undoScriptLocation"); return a; } /////////////////////////////////////////////////////////////////// - inline const Attribute & attrSrcPackageLocationFilename() { static Attribute a("SrcPackage","locationFilename"); return a; } + inline const Attribute & attrSrcPackageLocationFilename() { static Attribute a("SrcPackage","locationFilename"); return a; } inline const Attribute & attrSrcPackageLocationDownloadSize() { static Attribute a("SrcPackage","locationDownloadSize"); return a; } - inline const Attribute & attrSrcPackageLocationChecksum() { static Attribute a("SrcPackage","locationChecksum"); return a; } + inline const Attribute & attrSrcPackageLocationChecksum() { static Attribute a("SrcPackage","locationChecksum"); return a; } inline const Attribute & attrSrcPackageLocationChecksumType() { static Attribute a("SrcPackage","locationChecksumType"); return a; } - inline const Attribute & attrSrcPackageLocationMediaNr() { static Attribute a("SrcPackage","locationMediaNr"); return a; } + inline const Attribute & attrSrcPackageLocationMediaNr() { static Attribute a("SrcPackage","locationMediaNr"); return a; } /////////////////////////////////////////////////////////////////// //@} -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlandres@svn.opensuse.org