diff options
author | Ross Burton <ross@openedhand.com> | 2006-10-02 16:06:08 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2006-10-02 16:06:08 +0000 |
commit | dade587c81e34950cdeddc022954b32bc70f6f24 (patch) | |
tree | 54902adb9c77c7d46b182d36163979b1c7ce611f /meta/classes/package_deb.bbclass | |
parent | 16bcfe9956590afbcc41d995b70f48e46beadfde (diff) | |
download | poky-dade587c81e34950cdeddc022954b32bc70f6f24.tar.gz |
Don't nest os.path.join() calls
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@784 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 4526ac156c..de93593c95 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -35,7 +35,7 @@ python do_package_deb_install () { | |||
35 | if (exitstatus != 0 ): | 35 | if (exitstatus != 0 ): |
36 | raise bb.build.FuncFailed(output) | 36 | raise bb.build.FuncFailed(output) |
37 | 37 | ||
38 | f = open(os.path.join(os.path.join(tmpdir, "stamps"), "do_packages"), "w") | 38 | f = open(os.path.join(tmpdir, "stamps", "do_packages"), "w") |
39 | f.close() | 39 | f.close() |
40 | 40 | ||
41 | # NOTE: this env stuff is racy at best, we need something more capable | 41 | # NOTE: this env stuff is racy at best, we need something more capable |
@@ -86,8 +86,8 @@ python do_package_deb () { | |||
86 | 86 | ||
87 | tmpdir = bb.data.getVar('TMPDIR', d, 1) | 87 | tmpdir = bb.data.getVar('TMPDIR', d, 1) |
88 | # Invalidate the packages file | 88 | # Invalidate the packages file |
89 | if os.access(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages"),os.R_OK): | 89 | if os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): |
90 | os.unlink(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages")) | 90 | os.unlink(os.path.join(tmpdir, "stamps", "do_packages")) |
91 | 91 | ||
92 | if packages == []: | 92 | if packages == []: |
93 | bb.debug(1, "No packages; nothing to do") | 93 | bb.debug(1, "No packages; nothing to do") |