[yocto] [PATCH 07/11][auh] upgradehelper.py: Move recipe work into upgradehelper work dir.
Aníbal Limón
anibal.limon at linux.intel.com
Wed Jun 10 09:28:48 PDT 2015
[YOCTO #7489]
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
upgradehelper.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/upgradehelper.py b/upgradehelper.py
index 266435d..19753a6 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -126,10 +126,14 @@ def parse_config_file(config_file):
class Updater(object):
def __init__(self, auto_mode=False, send_email=False, skip_compilation=False):
- self.uh_dir = get_build_dir() + "/upgrade-helper"
+ self.uh_dir = os.path.join(get_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")
+ if not os.path.exists(self.uh_work_dir):
+ os.mkdir(self.uh_work_dir)
+
self.bb = Bitbake(get_build_dir())
self.buildhistory = BuildHistory(get_build_dir())
self.git = None
@@ -192,7 +196,7 @@ class Updater(object):
return "Succeeded"
def _create_workdir(self):
- self.workdir = self.uh_dir + "/" + self.pn
+ self.workdir = os.path.join(self.uh_work_dir, self.pn)
if not os.path.exists(self.workdir):
os.mkdir(self.workdir)
--
1.8.4.5
More information about the yocto
mailing list