summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/checkdistrib4
-rw-r--r--lib/MDV/Distribconf/Checks.pm3
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/checkdistrib b/bin/checkdistrib
index 57f6dc8..2da8cce 100755
--- a/bin/checkdistrib
+++ b/bin/checkdistrib
@@ -23,8 +23,8 @@ foreach my $tree (@distribs) {
printf(
"\nChecking distrib in %s (%s for %s)\n",
$tree,
- $mdc->getvalue(undef, 'version'),
- $mdc->getvalue(undef, 'arch'),
+ $mdc->getvalue(undef, 'version') || 'unknown',
+ $mdc->getvalue(undef, 'arch') || 'unknown',
);
}
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
);
}