diff --git a/include/rootfs.mk b/include/rootfs.mk index f2ed648d2f3..2128aefc2ab 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -87,6 +87,11 @@ define prepare_rootfs fi; \ done || true \ ) + awk -i inplace \ + '/^Status:/ { \ + if ($$3 == "user") { $$3 = "ok" } \ + else { sub(/,\|\,/, "", $$3) } \ + }1' $(1)/usr/lib/opkg/status $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status) @-find $(1) -name CVS -o -name .svn -o -name .git -o -name '.#*' | $(XARGS) rm -rf rm -rf \