backport r25022
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 16 Jan 2011 22:26:58 +0000 (22:26 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 16 Jan 2011 22:26:58 +0000 (22:26 +0000)
SVN-Revision: 25024

include/package-ipkg.mk

index 184f53c61a9ab81ff3b1863ed2f5924db58a7afe..cc1c8eb1315bb64e9ba3d568691895251896cc65 100644 (file)
@@ -104,7 +104,7 @@ ifeq ($(DUMP),)
                echo "Priority: $(PRIORITY)"; \
                echo "Maintainer: $(MAINTAINER)"; \
                echo "Architecture: $(PKGARCH)"; \
-               echo "Installed-Size: 1"; \
+               echo "Installed-Size: 0"; \
                echo -n "Description: "; getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \
        ) >> $$(IDIR_$(1))/CONTROL/control
        chmod 644 $$(IDIR_$(1))/CONTROL/control
@@ -115,8 +115,6 @@ ifeq ($(DUMP),)
        mkdir -p $(PACKAGE_DIR)
        -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' | $(XARGS) rm -rf
        $(RSTRIP) $$(IDIR_$(1))
-       SIZE=`cd $$(IDIR_$(1)); du -bs --exclude=./CONTROL . 2>/dev/null | cut -f1`; \
-       $(SED) "s|^\(Installed-Size:\).*|\1 $$$$SIZE|g" $$(IDIR_$(1))/CONTROL/control
 
     ifneq ($$(KEEP_$(1)),)
                @( \