From: Zac Medico Date: Tue, 19 Mar 2013 08:00:00 +0000 (-0700) Subject: append_repo: use Atom.with_repo() X-Git-Tag: v2.2.0_alpha167~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21dacb02653dab1eccd962dd44e79c5cb1b674fb;p=portage.git append_repo: use Atom.with_repo() --- diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 5c5e1138e..dafc3e34d 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -253,10 +253,10 @@ def append_repo(atom_list, repo_name, remember_source_file=False): If an atom already has a repo part, then it is preserved (see bug #461948). """ if remember_source_file: - return [(atom.repo is not None and atom or Atom(atom + "::" + repo_name, allow_wildcard=True, allow_repo=True), source) \ + return [(atom.repo is not None and atom or atom.with_repo(repo_name), source) \ for atom, source in atom_list] else: - return [atom.repo is not None and atom or Atom(atom + "::" + repo_name, allow_wildcard=True, allow_repo=True) \ + return [atom.repo is not None and atom or atom.with_repo(repo_name) \ for atom in atom_list] def stack_lists(lists, incremental=1, remember_source_file=False,