containerd: fix incomplete cleanup in Build/InstallDev
authorTexot Qi <redacted>
Wed, 26 Feb 2020 17:13:20 +0000 (01:13 +0800)
committerTexot Qi <redacted>
Thu, 27 Feb 2020 02:25:26 +0000 (10:25 +0800)
Currently it only cleans up binaries when executing
Build/InstallDev without deleting .built stamp file.

This leads to wrong information about existence of
built runc binaries and causes error when executing
package/containerd/install twice.

Signed-off-by: Texot Qi <redacted>
utils/containerd/Makefile

index fe2b5f810f9aca9c05c5aa6d286d197831b985f6..8437ce8e89a70c53dbd01fc82a09c26548ec651e 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=containerd
 PKG_VERSION:=1.2.10
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
@@ -68,6 +68,7 @@ endef
 # Avoid installing binaries
 define Build/InstallDev
        $(call Build/Compile/Default,clean)
+       rm -f $(STAMP_BUILT)
        $(call GoPackage/Build/InstallDev,$(1))
 endef
 
git clone https://git.99rst.org/PROJECT