All of lore.kernel.org
 help / color / mirror / Atom feed
* [auh][PATCH] Do not hardcode the location of tmp directory
@ 2018-03-01 14:31 Alexander Kanavin
  0 siblings, 0 replies; only message in thread
From: Alexander Kanavin @ 2018-03-01 14:31 UTC (permalink / raw)
  To: yocto

Get it from bitbake instead.

[YOCTO #12566]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 upgradehelper.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 169e9ce..d868cde 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -602,9 +602,9 @@ class UniverseUpdater(Updater):
             I(" Removing sstate directory ...")
             shutil.rmtree(os.path.join(get_build_dir(), "sstate-cache"))
         if settings.get("clean_tmp", "no") == "yes" and \
-                os.path.exists(os.path.join(get_build_dir(), "tmp")):
+                os.path.exists(self.base_env['TMPDIR']):
             I(" Removing tmp directory ...")
-            shutil.rmtree(os.path.join(get_build_dir(), "tmp"))
+            shutil.rmtree(self.base_env['TMPDIR'])
 
     def _check_upstream_versions(self):
         I(" Fetching upstream version(s) ...")
@@ -711,7 +711,7 @@ class UniverseUpdater(Updater):
 
     def _get_packages_to_upgrade(self, packages=None):
         self._check_upstream_versions()
-        last_checkpkg_file = os.path.realpath(get_build_dir() + "/tmp/log/checkpkg.csv")
+        last_checkpkg_file = os.path.realpath(self.base_env['TMPDIR'] + "/log/checkpkg.csv")
 
         pkgs_list = []
         for pkg in self._parse_checkpkg_file(last_checkpkg_file):
-- 
2.15.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-01 14:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 14:31 [auh][PATCH] Do not hardcode the location of tmp directory Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.