diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-03-15 22:28:03 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-03-15 22:28:03 -0700 |
commit | ca7467006b112f65a57c4db7816729841a2de694 (patch) | |
tree | a2a962f6e7fa7621413d39dedd6ef6d728a97dd9 | |
parent | Fix NameError introduced in commit 473caf415603e0b69ac29b0f0e59761b3c583ed8. (diff) | |
download | portage-ca7467006b112f65a57c4db7816729841a2de694.tar.gz portage-ca7467006b112f65a57c4db7816729841a2de694.tar.bz2 portage-ca7467006b112f65a57c4db7816729841a2de694.zip |
Warn when merging broken symlinks for bug #446.
-rw-r--r-- | pym/portage/dbapi/vartree.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index f918c2c66..95b67dd37 100644 --- 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") |