The workdir setting is useful for store the AUH generated patches into another directory than $BULDDIR/upgrade-helper/work this will be used to publish AUH work.
Signed-off-by: Aníbal Limón <anibal.li...@linux.intel.com> --- README | 3 +++ upgradehelper.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README b/README index 6432f97..d0cc4ae 100644 --- a/README +++ b/README @@ -47,6 +47,9 @@ from=upgrade.hel...@my-server.com # who should get the status mail with statistics, at the end status_recipients=john....@doe.com +# specify the directory where work (patches) will be saved (optional) +#workdir= + # clean sstate directory before upgrading clean_sstate=yes diff --git a/upgradehelper.py b/upgradehelper.py index 6cf8dd0..f9d915a 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -163,7 +163,10 @@ class Updater(object): self.uh_dir = os.path.join(build_dir, "upgrade-helper") if not os.path.exists(self.uh_dir): os.mkdir(self.uh_dir) - self.uh_work_dir = os.path.join(self.uh_dir, "work-%s" % \ + uh_base_work_dir = settings.get('workdir', '') + if not uh_base_work_dir: + uh_base_work_dir = self.uh_dir + self.uh_work_dir = os.path.join(uh_base_work_dir, "%s" % \ datetime.now().strftime("%Y%m%d%H%M%S")) os.mkdir(self.uh_work_dir) self.uh_recipes_all_dir = os.path.join(self.uh_work_dir, "all") -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto