aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/package_id.cc4
-rwxr-xr-xpython/package_id_TEST.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/package_id.cc b/python/package_id.cc
index 2c08a514f..1301db108 100644
--- a/python/package_id.cc
+++ b/python/package_id.cc
@@ -74,8 +74,8 @@ void expose_package_id()
"[ro] VersionSpec\n"
)
- .add_property("repository", &PackageID::repository,
- "[ro] Repository\n"
+ .add_property("repository_name", &PackageID::repository_name,
+ "[ro] RepositoryName\n"
)
.def("supports_action", &PackageID::supports_action,
diff --git a/python/package_id_TEST.py b/python/package_id_TEST.py
index ef7a7474d..24d43d8dc 100755
--- a/python/package_id_TEST.py
+++ b/python/package_id_TEST.py
@@ -54,8 +54,8 @@ class TestCase_01_PackageID(unittest.TestCase):
self.assertEquals(str(self.pid.slot_key().value()), "0")
def test_05_repository(self):
- self.assertEquals(str(self.pid.repository.name), "testrepo")
- self.assertEquals(str(self.ipid.repository.name), "installed")
+ self.assertEquals(str(self.pid.repository_name), "testrepo")
+ self.assertEquals(str(self.ipid.repository_name), "installed")
def test_07_canonical_form(self):
# Load the metadata