mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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
This commit is contained in:
@@ -50,11 +50,11 @@ python package_ipk_install () {
|
||||
|
||||
|
||||
if (not os.access(os.path.join(ipkdir,"Packages"), os.R_OK) or
|
||||
not os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK):
|
||||
not os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),os.R_OK):
|
||||
ret = os.system('ipkg-make-index -p %s %s ' % (os.path.join(ipkdir, "Packages"), ipkdir))
|
||||
if (ret != 0 ):
|
||||
raise bb.build.FuncFailed
|
||||
f=open(os.path.join(tmpdir, "stamps", "do_packages"),"w")
|
||||
f = open(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"),"w")
|
||||
f.close()
|
||||
|
||||
ret = os.system('ipkg-cl -o %s -f %s update' % (rootfs, conffile))
|
||||
@@ -144,9 +144,9 @@ python do_package_ipk () {
|
||||
return
|
||||
|
||||
tmpdir = bb.data.getVar('TMPDIR', d, 1)
|
||||
# Invalidate the packages file
|
||||
if os.access(os.path.join(tmpdir, "stamps", "do_packages"),os.R_OK):
|
||||
os.unlink(os.path.join(tmpdir, "stamps", "do_packages"))
|
||||
|
||||
if os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), os.R_OK):
|
||||
os.unlink(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"))
|
||||
|
||||
if packages == []:
|
||||
bb.debug(1, "No packages; nothing to do")
|
||||
|
||||
Reference in New Issue
Block a user