summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Distribconf/Checks.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-07-19 00:21:57 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-07-19 00:21:57 +0000
commit50963b5726136350e783df92908209d5aeebe3e0 (patch)
treef671c8384e6c3758671f6ebec23af0c286a66180 /lib/MDV/Distribconf/Checks.pm
parent6a4ff7f67384ab5a9247baad448ced84932f9831 (diff)
downloadperl-MDV-Distribconf-50963b5726136350e783df92908209d5aeebe3e0.tar
perl-MDV-Distribconf-50963b5726136350e783df92908209d5aeebe3e0.tar.gz
perl-MDV-Distribconf-50963b5726136350e783df92908209d5aeebe3e0.tar.bz2
perl-MDV-Distribconf-50963b5726136350e783df92908209d5aeebe3e0.tar.xz
perl-MDV-Distribconf-50963b5726136350e783df92908209d5aeebe3e0.zip
- avoid warning on undefined value
Diffstat (limited to 'lib/MDV/Distribconf/Checks.pm')
-rw-r--r--lib/MDV/Distribconf/Checks.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Distribconf/Checks.pm b/lib/MDV/Distribconf/Checks.pm
index f1c70ba..7866d32 100644
--- a/lib/MDV/Distribconf/Checks.pm
+++ b/lib/MDV/Distribconf/Checks.pm
@@ -320,7 +320,8 @@ sub checkdistrib {
$error += _report_err(
$fhout,
'UNSYNC_HDLIST',
- "hdlist for media `%s' is not sync with its rpms (+%d -%d rpms)",
+ "hdlist for media `%s' is not sync with its rpms" .
+ (defined($inhd) ? " (+%d -%d rpms)" : ' (no hdlist)'),
$media, $indir, $inhd
);
}