we like to run eclean pessimistically even when PKGDIR doesn't exist. but this leads to an error: !!! Error accessing PKGDIR. !!! (Check your /etc/make.conf and environment). !!! Error: [Errno 2] No such file or directory: '/build/butterfly/packages/' can we swallow ENOENT errors ? or maybe add a command line flag to permit this ?
I think a command line option makes sense in this case, with the default to be the current behavior. vapier: If the CROS project happens to write that before any of us does, feel free to commit it to the gentoolkit repo.
Command line option -i, --ignore-failure added to ignore the missing PKGDIR error. https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=2bf6fcfa9060f2490d77e4c5ea3dcd596e6b4c6b
This was released in gentoolkit-0.3.1