From f8fae05d3d4cf85af0a208dac25db435953b6971 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 7 Jan 2022 22:30:44 +0000 Subject: added support for filecount and package size to repo --- build-repo.sh | 3 +-- xibuild | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build-repo.sh b/build-repo.sh index d6200a3..6b1b1a2 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -129,7 +129,7 @@ generate-package-list () { echo "" > packages.list for file in $(ls -1 *.xipkg); do - echo "$file $(md5sum $file)" >> packages.list + echo "$file $(md5sum $file | awk '{print $1}') $(du -s $file | awk '{print $1}') $(gzip -cd $file | tar -tvv | grep -c ^-)" >> packages.list done; cd - } @@ -150,7 +150,6 @@ add-additional () { clean () { rm -rf xipkgs rm -rf logs - chmod -R 777 tmp rm -rf tmp rm -rf xibuild.log } diff --git a/xibuild b/xibuild index a9fad9b..1031dd3 100755 --- a/xibuild +++ b/xibuild @@ -156,7 +156,7 @@ xibuild () { fi printf "$INFO\tarchiving package..."; - tar -C $PKG_DEST -czf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1; + tar -C $PKG_DEST -cvzf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1; # create info file -- cgit v1.2.1