aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-25 18:05:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-25 18:05:34 +0000
commit394ca5b5149869e774c8664c034dd9d35c75273f (patch)
treebad35cf42b1a033746599c7d14396da21872dc7d /python
parentbf3ada970ee7a445868c6763d2e6e2d036aea608 (diff)
downloadpaludis-394ca5b5149869e774c8664c034dd9d35c75273f.tar.gz
paludis-394ca5b5149869e774c8664c034dd9d35c75273f.tar.xz
No need for favourite_repository
Diffstat (limited to 'python')
-rw-r--r--python/package_database.cc5
-rwxr-xr-xpython/package_database_TEST.py4
2 files changed, 0 insertions, 9 deletions
diff --git a/python/package_database.cc b/python/package_database.cc
index 25993c685..f14b412fc 100644
--- a/python/package_database.cc
+++ b/python/package_database.cc
@@ -72,11 +72,6 @@ void expose_package_database()
bp::no_init
)
- .add_property("favourite_repository", &PackageDatabase::favourite_repository,
- "[ro] RepositoryName\n"
- "Name of our 'favourite' repository"
- )
-
.def("fetch_repository", fetch_repository_ptr, bp::with_custodian_and_ward_postcall<0, 1>(),
"fetch_repository(RepositoryName) -> Repository\n"
"Fetch a named repository."
diff --git a/python/package_database_TEST.py b/python/package_database_TEST.py
index c8110702f..d5598f9c3 100755
--- a/python/package_database_TEST.py
+++ b/python/package_database_TEST.py
@@ -35,10 +35,6 @@ class TestCase_PackageDatabase(unittest.TestCase):
def test_01_create_error(self):
self.assertRaises(Exception, PackageDatabase)
- def test_02_favourite_repo(self):
- self.get_db()
- self.assertEqual(str(self.db.favourite_repository), "testrepo")
-
def test_03_fech_unique_qpn(self):
self.get_db()
self.assertEqual(str(QualifiedPackageName("foo/bar")), str(self.db.fetch_unique_qualified_package_name("bar")))