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_ipk.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_ipk.bbclass')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index cb44484855..f297381f87 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -48,11 +48,11 @@ python package_ipk_install () { | |||
48 | 48 | ||
49 | 49 | ||
50 | if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or | 50 | if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or |
51 | not os.access(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages"),os.R_OK)): | 51 | not os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): |
52 | ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir)) | 52 | ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir)) |
53 | if (ret != 0 ): | 53 | if (ret != 0 ): |
54 | raise bb.build.FuncFailed | 54 | raise bb.build.FuncFailed |
55 | f=open(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages"),"w") | 55 | f=open(os.path.join(tmpdir, "stamps", "do_packages"),"w") |
56 | f.close() | 56 | f.close() |
57 | 57 | ||
58 | ret = os.system('ipkg-cl -o %s -f %s update' % (rootfs, conffile)) | 58 | ret = os.system('ipkg-cl -o %s -f %s update' % (rootfs, conffile)) |
@@ -91,8 +91,8 @@ python do_package_ipk () { | |||
91 | 91 | ||
92 | tmpdir = bb.data.getVar('TMPDIR', d, 1) | 92 | tmpdir = bb.data.getVar('TMPDIR', d, 1) |
93 | # Invalidate the packages file | 93 | # Invalidate the packages file |
94 | if os.access(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages"),os.R_OK): | 94 | if os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): |
95 | os.unlink(os.path.join(os.path.join(tmpdir, "stamps"),"do_packages")) | 95 | os.unlink(os.path.join(tmpdir, "stamps", "do_packages")) |
96 | 96 | ||
97 | if packages == []: | 97 | if packages == []: |
98 | bb.debug(1, "No packages; nothing to do") | 98 | bb.debug(1, "No packages; nothing to do") |