From: Duncan Mac-Vicar P Date: Mon, 7 Jul 2008 13:38:50 +0000 (+0000) Subject: just for awareness, adding those 2 resource types X-Git-Tag: BASE-SuSE-Code-11-Branch~655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6d175cb06f68f9cf0fede18ca954b2c2e0d1670;p=platform%2Fupstream%2Flibzypp.git just for awareness, adding those 2 resource types --- diff --git a/zypp/repo/yum/ResourceType.cc b/zypp/repo/yum/ResourceType.cc index f765118..650ba9f 100644 --- a/zypp/repo/yum/ResourceType.cc +++ b/zypp/repo/yum/ResourceType.cc @@ -32,7 +32,8 @@ namespace zypp const ResourceType ResourceType::PATCH(ResourceType::PATCH_e); const ResourceType ResourceType::PRODUCT(ResourceType::PRODUCT_e); const ResourceType ResourceType::PATTERNS(ResourceType::PATTERNS_e); - + const ResourceType ResourceType::PRIMARY_DB(ResourceType::PRIMARY_DB_e); + const ResourceType ResourceType::OTHER_DB(ResourceType::OTHER_DB_e); ResourceType::ResourceType(const std::string & strval_r) : _type(parse(strval_r)) @@ -52,6 +53,8 @@ namespace zypp _table["patch"] = ResourceType::PATCH_e; _table["product"] = ResourceType::PRODUCT_e; _table["patterns"] = ResourceType::PATTERNS_e; + _table["primary_db"] = ResourceType::PRIMARY_DB_e; + _table["other_db"] = ResourceType::OTHER_DB_e; _table["NONE"] = _table["none"] = ResourceType::NONE_e; } @@ -80,6 +83,8 @@ namespace zypp _table[PATCH_e] = "patch"; _table[PRODUCT_e] = "product"; _table[PATTERNS_e] = "patterns"; + _table[OTHER_DB_e] = "other_db"; + _table[PRIMARY_DB_e] = "primary_db"; _table[NONE_e] = "NONE"; } return _table[_type]; diff --git a/zypp/repo/yum/ResourceType.h b/zypp/repo/yum/ResourceType.h index a91da084..2d5cf9e 100644 --- a/zypp/repo/yum/ResourceType.h +++ b/zypp/repo/yum/ResourceType.h @@ -36,6 +36,9 @@ namespace zypp static const ResourceType PATCH; // suse extension static const ResourceType PRODUCT; // suse extension static const ResourceType PATTERNS; // suse extension + // sqlite caches yum extensions: + static const ResourceType PRIMARY_DB; // yum extension + static const ResourceType OTHER_DB; // yum extension enum Type { @@ -48,7 +51,9 @@ namespace zypp PATCHES_e, PATCH_e, PRODUCT_e, - PATTERNS_e + PATTERNS_e, + PRIMARY_DB_e, + OTHER_DB_e, }; ResourceType(Type type) : _type(type) {}