[openwrt/openwrt] include/rootfs: improve readability of OPKG status fixup block

LEDE Commits lede-commits at lists.infradead.org
Tue Jun 11 14:58:57 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b569d0cc3fc5215d66aab4bcdd4ece8ebde29901

commit b569d0cc3fc5215d66aab4bcdd4ece8ebde29901
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Tue Jun 11 13:03:17 2024 +0200

    include/rootfs: improve readability of OPKG status fixup block
    
    Improve readability of OPKG status fixup block.
    
    Link: https://github.com/openwrt/openwrt/pull/15543
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 include/rootfs.mk | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/rootfs.mk b/include/rootfs.mk
index 23692a3a82..554dd48460 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -95,12 +95,12 @@ define prepare_rootfs
 			[ -n "$(CONFIG_USE_APK)" ] && $(STAGING_DIR_HOST)/bin/tar --delete -f ./lib/apk/db/scripts.tar $$(basename $$script); \
 		done; \
 		if [ -z "$(CONFIG_USE_APK)" ]; then \
-		$(if $(IB),,awk -i inplace \
-			'/^Status:/ { \
-				if ($$3 == "user") { $$3 = "ok" } \
-				else { sub(/,\<user\>|\<user\>,/, "", $$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 ;) \
+			$(if $(IB),,awk -i inplace \
+				'/^Status:/ { \
+					if ($$3 == "user") { $$3 = "ok" } \
+					else { sub(/,\<user\>|\<user\>,/, "", $$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 ;) \
 		fi; \
 		for script in ./etc/init.d/*; do \
 			grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \




More information about the lede-commits mailing list