summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-08 11:39:41 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-08 11:39:41 -0800
commitea5de5801644502ec225e6cf3172af1918cc3554 (patch)
treee199d84155b73db36c36df447b8b8fef27b89592
parent9e7ca47a113714551103cb8e5e8fe4dd51c7deec (diff)
downloadportage-ea5de5801644502ec225e6cf3172af1918cc3554.tar.gz
portage-ea5de5801644502ec225e6cf3172af1918cc3554.tar.bz2
portage-ea5de5801644502ec225e6cf3172af1918cc3554.zip
emerge: support ../ path arguments
This will fix bug #354141.
-rw-r--r--pym/_emerge/depgraph.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index c4d84ab93..245e38e59 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1621,7 +1621,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" + \