package_(deb|ipk).bbclass: Rename package index stamp to make it more obvious what...
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 29 Sep 2007 10:41:11 +0000 (10:41 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sat, 29 Sep 2007 10:41:11 +0000 (10:41 +0000)
classes/package_deb.bbclass
classes/package_ipk.bbclass

index 57c79f9..b85ffe2 100644 (file)
@@ -46,7 +46,7 @@ python do_package_deb_install () {
     if (exitstatus != 0 ):
         raise bb.build.FuncFailed(output)
 
-    f = open(os.path.join(tmpdir, "stamps", "do_packages"), "w")
+    f = open(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"), "w")
     f.close()
 
     # NOTE: this env stuff is racy at best, we need something more capable
@@ -94,9 +94,9 @@ python do_package_deb () {
         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", "DEB_PACKAGE_INDEX_CLEAN"),os.R_OK):
+        os.unlink(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"))
 
     if packages == []:
         bb.debug(1, "No packages; nothing to do")
index 0b7f274..a12899e 100644 (file)
@@ -49,11 +49,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))
@@ -143,9 +143,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")