summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-12-11 15:57:32 +0000
committerFrancois Pons <fpons@mandriva.com>2002-12-11 15:57:32 +0000
commit2714cdabc9f6e6adaad39d4e69fe6ac6518431e1 (patch)
treeb591f0df2809c6b0145c34527a4aba3840bb596e /urpm.pm
parent27a0a750284c0a8c83c8112dbb943f881cfff9e8 (diff)
downloadurpmi-2714cdabc9f6e6adaad39d4e69fe6ac6518431e1.tar
urpmi-2714cdabc9f6e6adaad39d4e69fe6ac6518431e1.tar.gz
urpmi-2714cdabc9f6e6adaad39d4e69fe6ac6518431e1.tar.bz2
urpmi-2714cdabc9f6e6adaad39d4e69fe6ac6518431e1.tar.xz
urpmi-2714cdabc9f6e6adaad39d4e69fe6ac6518431e1.zip
4.1-15mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 1b709af9..9ae73d46 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -620,11 +620,11 @@ sub configure {
foreach (grep { !$_->{ignore} && (!$options{update} || $_->{update}) } @{$urpm->{media} || []}) {
delete @{$_}{qw(start end)};
if ($options{callback}) {
- if (-s "$urpm->{statedir}/$_->{hdlist}" > 32) {
+ if ($options{hdlist} && -s "$urpm->{statedir}/$_->{hdlist}" > 32) {
$urpm->{log}(_("examining hdlist file [%s]", "$urpm->{statedir}/$_->{hdlist}"));
eval { ($_->{start}, $_->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$_->{hdlist}",
packing => 1, callback => $options{callback}) };
- } elsif (-s "$urpm->{statedir}/synthesis.$_->{hdlist}" > 32) {
+ } else {
$urpm->{log}(_("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$_->{hdlist}"));
eval { ($_->{start}, $_->{end}) = $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$_->{hdlist}",
callback => $options{callback}) };