From: Tom Wijsman Date: Sat, 16 Mar 2013 05:28:03 +0000 (-0700) Subject: Warn when merging broken symlinks for bug #446. X-Git-Tag: v2.2.0_alpha167~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca7467006b112f65a57c4db7816729841a2de694;p=portage.git Warn when merging broken symlinks for bug #446. --- 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")