]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Config: Fix computing the package file size
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Aug 2024 16:48:59 +0000 (16:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Aug 2024 16:48:59 +0000 (16:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config

index 11074e94a68b7743e097e89e9452953ef558e602..f02675630e474ac5731570670fb73cbc8129960e 100644 (file)
@@ -418,9 +418,6 @@ define CREATE_PACKAGE
                .
 endef
 
-# Returns the filesize in bytes
-PACKAGE_SIZE = stat --format=%s $(1)
-
 # Creates the meta file for a Pakfire package
 define CREATE_META
        # Clear/create the file
@@ -431,7 +428,7 @@ define CREATE_META
        echo "Summary: $(SUMMARY)"                                              >> $(2)
        echo "ProgVersion: $(VER)"                                              >> $(2)
        echo "Release: $(PAK_VER)"                                              >> $(2)
-       echo "Size: $(call PACKAGE_SIZE,$(1))"                  >> $(2)
+       echo "Size: $(shell stat --format=%s $(1))"                     >> $(2)
        echo "Dependencies: $(DEPS)"                                    >> $(2)
        echo "File: $(PROG)-$(VER)-$(PAK_VER).ipfire"   >> $(2)
        echo "Services: $(SERVICES)"                                    >> $(2)