Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24745 Details for
Bug 40078
gentoolkit-0.1.38 pkg-size returns bogus value on empty metapackages (fix included)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to pkg-size
pkg-size.patch (text/plain), 649 bytes, created by
Francois Guimond
on 2004-02-01 07:35:45 UTC
(
hide
)
Description:
patch to pkg-size
Filename:
MIME Type:
Creator:
Francois Guimond
Created:
2004-02-01 07:35:45 UTC
Size:
649 bytes
patch
obsolete
>--- /usr/bin/pkg-size.orig 2004-01-27 19:25:17.000000000 -0500 >+++ /usr/bin/pkg-size 2004-02-01 05:15:25.000000000 -0500 >@@ -48,12 +48,16 @@ > > pkgname=`echo $file | sed -e "s:\/var\/db\/pkg\/::" -e "s:\/CONTENTS::"` > >-totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs du -scb | grep total | cut -f 1` >+contents=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /"` > > size=0 >-for i in $totals ; do >- size=$[size+i] >-done >+ >+if [ ! -z "$contents" ] ; then >+ totals=`echo $contents | xargs du -scb | grep total | cut -f 1` >+ for i in $totals ; do >+ size=$[size+i] >+ done >+fi > > echo "$pkgname $size ($[size/1024]KB)" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40078
:
24745
|
24897