diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-09-27 11:48:36 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-09-27 11:48:36 +0000 |
| commit | 8af3726ad58b08a598f519cf87c9c7c4e0ea458a (patch) | |
| tree | ec20505260c4aa00b5107bb015cfc28d8dad9702 /meta/classes/package_ipk.bbclass | |
| parent | 5c5c08405ce2ff99e6b1ddf71e6710f7ee81790c (diff) | |
| download | poky-8af3726ad58b08a598f519cf87c9c7c4e0ea458a.tar.gz | |
package_(ipk|deb).bbclass: Rename do_packages stamp to be clearer about what it does
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2814 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
| -rw-r--r-- | meta/classes/package_ipk.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 4329d01b8f..be300e04b1 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
| @@ -50,11 +50,11 @@ python package_ipk_install () { | |||
| 50 | 50 | ||
| 51 | 51 | ||
| 52 | if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or | 52 | if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or |
| 53 | not os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): | 53 | not os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),os.R_OK): |
| 54 | ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir)) | 54 | ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir)) |
| 55 | if (ret != 0 ): | 55 | if (ret != 0 ): |
| 56 | raise bb.build.FuncFailed | 56 | raise bb.build.FuncFailed |
| 57 | f=open(os.path.join(tmpdir, "stamps", "do_packages"),"w") | 57 | f = open(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),"w") |
| 58 | f.close() | 58 | f.close() |
| 59 | 59 | ||
| 60 | ret = os.system('ipkg-cl -o %s -f %s update' % (rootfs, conffile)) | 60 | ret = os.system('ipkg-cl -o %s -f %s update' % (rootfs, conffile)) |
| @@ -144,9 +144,9 @@ python do_package_ipk () { | |||
| 144 | return | 144 | return |
| 145 | 145 | ||
| 146 | tmpdir = bb.data.getVar('TMPDIR', d, 1) | 146 | tmpdir = bb.data.getVar('TMPDIR', d, 1) |
| 147 | # Invalidate the packages file | 147 | |
| 148 | if os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): | 148 | if os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), os.R_OK): |
| 149 | os.unlink(os.path.join(tmpdir, "stamps", "do_packages")) | 149 | os.unlink(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN")) |
| 150 | 150 | ||
| 151 | if packages == []: | 151 | if packages == []: |
| 152 | bb.debug(1, "No packages; nothing to do") | 152 | bb.debug(1, "No packages; nothing to do") |
