Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2577 Details for
Bug 5566
Show total download size before starting
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
IGNORE ABOVE: My perl script to show remaining package download size.
pkg-dlsize.pl (text/plain), 677 bytes, created by
Alex Walker
on 2002-07-25 10:54:46 UTC
(
hide
)
Description:
IGNORE ABOVE: My perl script to show remaining package download size.
Filename:
MIME Type:
Creator:
Alex Walker
Created:
2002-07-25 10:54:46 UTC
Size:
677 bytes
patch
obsolete
>#!/usr/bin/perl -w >use strict; >use Digest::MD5; > >unless ($ARGV[0] && $ARGV[1]) { > print "Need two arguments!\n"; > exit >} > >my ($category, $package) = split('/',"$ARGV[0]",2); >my $version = "$ARGV[1]"; >my $digestfile = "/usr/portage/$category/$package/files/digest-$package-$version"; >my $distfilepath = "/usr/portage/distfiles/"; > >open(DIGEST,'<',$digestfile) > or die "Can't open digest file file!"; > >my $tot = 0; > >while (<DIGEST>) { > chomp $_; > > my (undef,$md5,$file,$size) = split (' ',$_,4); > > if (open(FILE, "$distfilepath/$file")) { > binmode(FILE); > if (Digest::MD5->new->addfile(*FILE)->hexdigest eq $md5) { > next; > } > $tot = $tot + $size; > } >} > >print "$tot\n"
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 Raw
Actions:
View
Attachments on
bug 5566
:
2576
| 2577 |
2707