projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59fcd70
)
Warn when merging broken symlinks for bug #446.
author
Tom Wijsman
<tomwij@gentoo.org>
Sat, 16 Mar 2013 05:28:03 +0000
(22:28 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 16 Mar 2013 05:28:03 +0000
(22:28 -0700)
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index f918c2c664aba95251a3ee71605cc028f0929b97..95b67dd37d185e2bccdaafdb3a584748f4bfe149 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-4484,6
+4484,11
@@
class dblink(object):
pass
if mymtime != None:
+ if not os.path.exists(myrealto) and not os.path.exists(join(srcroot, myabsto)):
+ self._eqawarn('preinst',
+ [_("QA Notice: Symbolic link /%s points to /%s which does not exist.")
+ % (relative_path, myabsto)])
+
showMessage(">>> %s -> %s\n" % (mydest, myto))
if sys.hexversion >= 0x3030000:
outfile.write("sym "+myrealdest+" -> "+myto+" "+str(mymtime // 1000000000)+"\n")