Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10513 - in /trunk/libzypp/zypp/repo/yum: ResourceType.cc ResourceType.h
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Mon, 07 Jul 2008 13:38:50 -0000
  • Message-id: <20080707133850.F2E962C18B@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Mon Jul 7 15:38:50 2008
New Revision: 10513

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10513&view=rev
Log:
just for awareness, adding those 2 resource types

Modified:
trunk/libzypp/zypp/repo/yum/ResourceType.cc
trunk/libzypp/zypp/repo/yum/ResourceType.h

Modified: trunk/libzypp/zypp/repo/yum/ResourceType.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/yum/ResourceType.cc?rev=10513&r1=10512&r2=10513&view=diff
==============================================================================
--- trunk/libzypp/zypp/repo/yum/ResourceType.cc (original)
+++ trunk/libzypp/zypp/repo/yum/ResourceType.cc Mon Jul 7 15:38:50 2008
@@ -32,7 +32,8 @@
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 @@
_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 @@
_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];

Modified: trunk/libzypp/zypp/repo/yum/ResourceType.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/yum/ResourceType.h?rev=10513&r1=10512&r2=10513&view=diff
==============================================================================
--- trunk/libzypp/zypp/repo/yum/ResourceType.h (original)
+++ trunk/libzypp/zypp/repo/yum/ResourceType.h Mon Jul 7 15:38:50 2008
@@ -36,6 +36,9 @@
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 @@
PATCHES_e,
PATCH_e,
PRODUCT_e,
- PATTERNS_e
+ PATTERNS_e,
+ PRIMARY_DB_e,
+ OTHER_DB_e,
};

ResourceType(Type type) : _type(type) {}

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages