From: Sebastian Luther Date: Mon, 31 Jan 2011 17:40:08 +0000 (+0100) Subject: Allow relative paths (starting with ./) on the cmd line X-Git-Tag: v2.2.0_alpha20~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dfcef19feff049004e0a7043fb980ecdc711a930;p=portage.git Allow relative paths (starting with ./) on the cmd line bug 352208 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index a92722272..4f60a3a45 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1634,6 +1634,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