commit: d514b0f7958bdfc9881b667f3d4a3fd82244efc8 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Wed May 11 06:28:03 2016 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Wed May 11 06:28:03 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d514b0f7
repoman: Update the running from a checkout code to add both repoman and portage dirs repoman/bin/repoman | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/repoman/bin/repoman b/repoman/bin/repoman index 819e0f5..91a8d06 100755 --- a/repoman/bin/repoman +++ b/repoman/bin/repoman @@ -26,8 +26,13 @@ except KeyboardInterrupt: sys.exit(1) from os import path as osp -if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")): - pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") +here = osp.realpath(__file__) +if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.dirname(here))), ".portage_not_installed")): + # Add the repoman subpkg + pym_path = osp.join(osp.dirname(osp.dirname(here)), "pym") + sys.path.insert(0, pym_path) + # Add the base portage pkg + pym_path = osp.join(osp.dirname(osp.dirname(osp.dirname(here))), "pym") sys.path.insert(0, pym_path) import portage portage._internal_caller = True