Commit Graph

6 Commits

Author SHA1 Message Date
Richard Purdie
8702fdbb72 Clarify license and copyright information
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-17 10:29:45 +01:00
Richard Purdie
285ebc734f clobberdir: Only function if the target trash directory exists
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-03-15 10:56:55 +00:00
Richard Purdie
dca5a89ca9 janitor/clobberdir: Fix case where clobber directory isn't a local path to the trash directory
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-15 18:00:20 +00:00
Aaron Chan
54f848380f clobberdir: Fix data expansion with utils API
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>
2018-07-05 10:47:15 +01:00
Richard Purdie
b7cf6d8209 utils: Allow customisation using ABHELPER_JSON from the environment
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>
2018-06-20 23:16:10 +01:00
Richard Purdie
eff0bb78df Add janitor scripts (trashdir clobber and mirroring)
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>
2018-02-28 17:37:02 +00:00