--- linux-firmware-20110818.ebuild?revision=1.3 2011-12-26 16:25:11.292231195 +0400 +++ linux-firmware-20110818.ebuild 2011-12-26 16:07:37.000000000 +0400 @@ -62,7 +62,8 @@ ebegin "Removing all files not listed in config" find * \( \! -type d -and \! -name ${PN}.conf \) \ | sort ${PN}.conf ${PN}.conf - \ - | uniq -u | xargs -r rm + | uniq -u | xargs -r rm \ + && find -type d -empty -delete eend $? || die fi }