commit: cd0ca6c558cbe6bdada311f4302f28c2dbec1f0f
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Mon Dec 15 16:27:13 2014 +0000
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org>
CommitDate: Mon Dec 15 16:27:13 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=cd0ca6c5
portage.tests.glsa.test_security_set: Delete deprecated code.
1 call to deprecated
portage.repository.config.RepoConfigLoader.mainRepoLocation()
function has been deleted.
---
pym/portage/tests/glsa/test_security_set.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pym/portage/tests/glsa/test_security_set.py
b/pym/portage/tests/glsa/test_security_set.py
index bf1f82b..e73deab 100644
--- a/pym/portage/tests/glsa/test_security_set.py
+++ b/pym/portage/tests/glsa/test_security_set.py
@@ -1,4 +1,4 @@
-# Copyright 2013 Gentoo Foundation
+# Copyright 2013-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import unicode_literals
@@ -129,8 +129,7 @@ class SecuritySetTestCase(TestCase):
try:
portdb =
playground.trees[playground.eroot]["porttree"].dbapi
- glsa_dir = os.path.join(
- portdb.repositories.mainRepoLocation(),
'metadata', 'glsa')
+ glsa_dir =
os.path.join(portdb.repositories['test_repo'].location, 'metadata', 'glsa')
portage.util.ensure_dirs(glsa_dir)
for glsa in glsas:
with io.open(os.path.join(glsa_dir,