diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-06-04 22:48:30 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-06-04 22:48:30 +0000 |
commit | d009c405bde35b53d5b4d07dd27404c885f29a41 (patch) | |
tree | b6b87e7d8ef8d819b5e782427e3afac455c44a7d /app-admin | |
parent | moved mailx to RDEPEND from DEPEND (diff) | |
download | historical-d009c405bde35b53d5b4d07dd27404c885f29a41.tar.gz historical-d009c405bde35b53d5b4d07dd27404c885f29a41.tar.bz2 historical-d009c405bde35b53d5b4d07dd27404c885f29a41.zip |
Fixes #3016.
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/gentoolkit/ChangeLog | 4 | ||||
-rw-r--r-- | app-admin/gentoolkit/files/scripts/pkg-size | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/app-admin/gentoolkit/ChangeLog b/app-admin/gentoolkit/ChangeLog index 20924110448a..7680b15a3d9f 100644 --- a/app-admin/gentoolkit/ChangeLog +++ b/app-admin/gentoolkit/ChangeLog @@ -1,6 +1,6 @@ # ChangeLog for app-admin/gentoolkit # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/ChangeLog,v 1.16 2002/06/03 21:59:22 karltk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/gentoolkit/ChangeLog,v 1.17 2002/06/04 22:48:30 karltk Exp $ *gentoolkit-0.1.10-r1 (04 Jun 2002) @@ -8,6 +8,8 @@ etc-update now considers all dirs listed in /etc/make.globals' CONFIG_PROTECT. + pkg-size now handles very large packages, and packages that have files with space in their names. + Removed gentoolkit-0.1.10.ebuild files/digest-gentoolkit-0.1.10 *gentoolkit-0.1.10 (15 May 2002) diff --git a/app-admin/gentoolkit/files/scripts/pkg-size b/app-admin/gentoolkit/files/scripts/pkg-size index 138cb1891e5d..96cdff222441 100644 --- a/app-admin/gentoolkit/files/scripts/pkg-size +++ b/app-admin/gentoolkit/files/scripts/pkg-size @@ -1,7 +1,9 @@ #!/bin/sh -spec=$1 +# Copyright(c) 2002, Gentoo Technologies, Inc +# Author: Karl Trygve Kalleberg <karltk@gentoo.org> +spec=$1 name=`echo $1 | sed "s/\([^/]*\)\///"` category=`echo $1 | sed "s/\/.*//"` @@ -39,8 +41,12 @@ fi pkgname=`echo $file | sed -e "s:\/var\/db\/pkg\/::" -e "s:\/CONTENTS::"` -files=`cat $file|grep "obj"|awk '{ print $2 }'` -size=`(du -scb $files | tail -n 1 | awk '{ print $1 }') 2> /dev/null` +totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs du -scb | grep total | cut -f 1` + +size=0 +for i in $totals ; do + size=$[size+i] +done echo "$pkgname $size ($[size/1024]KB)" |