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_deb.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_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 2ab537f174..d94fae5c90 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -38,7 +38,7 @@ python do_package_deb_install () { | |||
38 | if (exitstatus != 0 ): | 38 | if (exitstatus != 0 ): |
39 | raise bb.build.FuncFailed(output) | 39 | raise bb.build.FuncFailed(output) |
40 | 40 | ||
41 | f = open(os.path.join(tmpdir, "stamps", "do_packages"), "w") | 41 | f = open(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"), "w") |
42 | f.close() | 42 | f.close() |
43 | 43 | ||
44 | # NOTE: this env stuff is racy at best, we need something more capable | 44 | # NOTE: this env stuff is racy at best, we need something more capable |
@@ -86,9 +86,9 @@ python do_package_deb () { | |||
86 | return | 86 | return |
87 | 87 | ||
88 | tmpdir = bb.data.getVar('TMPDIR', d, 1) | 88 | tmpdir = bb.data.getVar('TMPDIR', d, 1) |
89 | # Invalidate the packages file | 89 | |
90 | if os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK): | 90 | if os.access(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"),os.R_OK): |
91 | os.unlink(os.path.join(tmpdir, "stamps", "do_packages")) | 91 | os.unlink(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN")) |
92 | 92 | ||
93 | if packages == []: | 93 | if packages == []: |
94 | bb.debug(1, "No packages; nothing to do") | 94 | bb.debug(1, "No packages; nothing to do") |
@@ -141,6 +141,7 @@ python do_package_deb () { | |||
141 | note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) | 141 | note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) |
142 | unlockfile(lf) | 142 | unlockfile(lf) |
143 | continue | 143 | continue |
144 | |||
144 | controldir = os.path.join(root, 'DEBIAN') | 145 | controldir = os.path.join(root, 'DEBIAN') |
145 | bb.mkdirhier(controldir) | 146 | bb.mkdirhier(controldir) |
146 | os.chmod(controldir, 0755) | 147 | os.chmod(controldir, 0755) |