summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/doebuild.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 71b55be29..e26509a05 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -1472,6 +1472,17 @@ def _post_src_install_uid_fix(mysettings, out):
v = use_reduce(v, uselist=use, token_class=token_class)
v = paren_enclose(v)
if not v:
+ filename = os.path.join(build_info_dir, k)
+ try:
+ st = os.stat(filename)
+ except OSError:
+ pass
+ else:
+ if st.st_size != 0:
+ try:
+ os.unlink(filename)
+ except OSError:
+ pass
continue
codecs.open(_unicode_encode(os.path.join(build_info_dir,
k), encoding=_encodings['fs'], errors='strict'),