From cd4a61f1b370e9385edfc9eabf36702d8e1e3ca8 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Mon, 31 Jan 2011 18:40:08 +0100 Subject: Allow relative paths (starting with ./) on the cmd line bug 352208 --- pym/_emerge/depgraph.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pym') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 2b9ce5051..37615a1ee 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1650,6 +1650,13 @@ 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): + f = os.path.abspath(x) + if not f.startswith(myroot): + portage.writemsg(("\n\n!!! '%s' (resolved from '%s') does not start with" + \ + " $ROOT.\n") % (f, x), noiselevel=-1) + return 0, [] + lookup_owners.append(f) else: if x in ("system", "world"): x = SETPREFIX + x -- cgit v1.2.3-1-g7c22