From cd02898367a30fd51e013993785b24e2885b6b0d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Feb 2011 11:39:41 -0800 Subject: [PATCH] emerge: support ../ path arguments This will fix bug #354141. --- pym/_emerge/depgraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index d41ab825f..fe706af40 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1638,7 +1638,8 @@ class depgraph(object): # Queue these up since it's most efficient to handle # multiple files in a single iter_owners() call. lookup_owners.append(x) - elif x.startswith("." + os.path.sep): + elif x.startswith("." + os.sep) or \ + x.startswith(".." + os.sep): f = os.path.abspath(x) if not f.startswith(myroot): portage.writemsg(("\n\n!!! '%s' (resolved from '%s') does not start with" + \ -- 2.26.2