Review Request 127192: Make --cleanbuild remove all "work" files
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Feb 26 14:05:11 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127192/
-----------------------------------------------------------
Review request for kdewin.
Repository: emerge
Description
-------
Not sure, whether this is actually intended (strictly speaking, it does match the terminology used in emerge), but it did come as a (negative) surprise to me:
emerge --cleanbuild XY
does _not_ clean everything in build\category\XY\work, but only the "real" build directory (with the compiler / release type specification) in there. This is ok for most (not all) source packages, but for other packages it means leaving a lot of cruft.
_If_ this is actually the intended behavior, I'd want a --cleanwork action, in addition to this. Assuming the intended behavior is to clean everything in build\category\XY\work, this patch will do that.
Patch also makes failed removals non-fatal, in case there are write-protected files, or some-such.
Diffs
-----
bin/Package/PackageBase.py 33247f4
bin/utils.py 5d160b6
Diff: https://git.reviewboard.kde.org/r/127192/diff/
Testing
-------
Tested locally, and cleans the "work" directories for packages such as mysql-pkg, aspell, 7zip, etc., that were not cleaned, before.
Thanks,
Thomas Friedrichsmeier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20160226/71d58a35/attachment.html>
More information about the Kde-windows
mailing list