The changes to use variable expansion missed out the clobberdir script. This
patch fixes regressions introduced by that change so data is expanded correctly.
This fix is to move clobberdir from python2 to python3 to resolve unicode data
in python2 and secondly, change the data extraction expansion from
ourconfig["TRASH_DIR"] to utils.getconfig("TRASH_DIR", ourconfig) so that
expansion occurs.
Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Usage is documented in README and an example, local-example.json is
included.
Also clean up the parameter to loadconfig() as its actually not needed.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This takes the janitor from the yocto-autobuilder, converts it to python3
and switches it to use the config.json file along with the other code.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>