projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a58a3c
)
Allow relative paths (starting with ./) on the cmd line
author
Sebastian Luther
<SebastianLuther@gmx.de>
Mon, 31 Jan 2011 17:40:08 +0000
(18:40 +0100)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 31 Jan 2011 21:04:50 +0000
(13:04 -0800)
bug 352208
pym/_emerge/depgraph.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/depgraph.py
b/pym/_emerge/depgraph.py
index a9272227220ed9659b0ad073738947aadad237c4..4f60a3a45ff06542ad4fef33a7a778c2592022bc 100644
(file)
--- 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