Author: nbd
Date: 2016-02-01 00:29:12 +0100 (Mon, 01 Feb 2016)
New Revision: 48585

Modified:
   trunk/package/Makefile
Log:
package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set

Signed-off-by: Alexander Couzens <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/Makefile
===================================================================
--- trunk/package/Makefile      2016-01-31 23:29:07 UTC (rev 48584)
+++ trunk/package/Makefile      2016-01-31 23:29:12 UTC (rev 48585)
@@ -117,6 +117,7 @@
                        IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) 
./etc/rc.common $$script enable; \
                done || true \
        )
+       $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: 
$(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status)
        @-find $(TARGET_DIR) -name CVS   | $(XARGS) rm -rf
        @-find $(TARGET_DIR) -name .svn  | $(XARGS) rm -rf
        @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to