From 04b2e10ee87e4a09543d0b45d54dbcc9c4c990c8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 12 Jun 2012 00:21:57 -0700 Subject: [PATCH] test_match_from_list: fix _pkg_str usage --- pym/portage/tests/dep/test_match_from_list.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/tests/dep/test_match_from_list.py b/pym/portage/tests/dep/test_match_from_list.py index afba4141f..fae473e20 100644 --- a/pym/portage/tests/dep/test_match_from_list.py +++ b/pym/portage/tests/dep/test_match_from_list.py @@ -1,10 +1,10 @@ -# Copyright 2006, 2010 Gentoo Foundation +# Copyright 2006-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import sys from portage.tests import TestCase from portage.dep import Atom, match_from_list, _repo_separator -from portage.versions import catpkgsplit +from portage.versions import catpkgsplit, _pkg_str if sys.hexversion >= 0x3000000: basestring = str @@ -16,7 +16,7 @@ class Package(object): def __init__(self, atom): atom = Atom(atom, allow_repo=True) self.cp = atom.cp - self.cpv = atom.cpv + self.cpv = _pkg_str(atom.cpv, slot=(atom.slot or '0'), repo=atom.repo) self.cpv_split = catpkgsplit(self.cpv) self.slot = atom.slot self.repo = atom.repo -- 2.26.2