|
|
|
|
@ -537,11 +537,11 @@ sub op_fetch {
|
|
|
|
|
if (-f "$local_srcdir/$remote_srcfile" or -f "$local_specdir/$remote_srcfile") { |
|
|
|
|
# source already on local filesystem |
|
|
|
|
my $size; |
|
|
|
|
if (-f "$srcdir/$srcfile") { |
|
|
|
|
$size = (stat("$srcdir/$srcfile"))[7]; |
|
|
|
|
if (-f "$local_srcdir/$remote_srcfile") { |
|
|
|
|
$size = (stat("$local_srcdir/$remote_srcfile"))[7]; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
$size = (stat("$specdir/$srcfile"))[7]; |
|
|
|
|
$size = (stat("$local_specdir/$remote_srcfile"))[7]; |
|
|
|
|
} |
|
|
|
|
if ($size > 1024*1024) { |
|
|
|
|
$size = sprintf("%.1fMB", $size / (1024*1024)); |
|
|
|
|
|