From: Zac Medico Date: Wed, 26 Sep 2012 03:47:39 +0000 (-0700) Subject: update_ents: use Package._dep_keys X-Git-Tag: v2.2.0_alpha133~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f07531fa54158a84ca0105b7652ffd9a3f2986e;p=portage.git update_ents: use Package._dep_keys --- diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index b7c0c7b0d..dbba22cd7 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -19,6 +19,7 @@ from portage import auxdbkeys from portage.eapi import _get_eapi_attrs from portage.exception import InvalidData from portage.localization import _ +from _emerge.Package import Package class dbapi(object): _category_re = re.compile(r'^\w[-.+\w]*$', re.UNICODE) @@ -290,8 +291,7 @@ class dbapi(object): maxval = len(cpv_all) aux_get = self.aux_get aux_update = self.aux_update - meta_keys = ["DEPEND", "EAPI", "HDEPEND", - "PDEPEND", "PROVIDE", "RDEPEND", 'repository'] + meta_keys = Package._dep_keys + ("EAPI", "PROVIDE", "repository") repo_dict = None if isinstance(updates, dict): repo_dict = updates