summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-03 11:55:07 -0500
committerJeremy Katz <katzj@redhat.com>2008-03-03 11:58:09 -0500
commit0cf1ffa9a1a28ea565ceea1f5c0dd83f6b39a8c5 (patch)
tree70e5f2d818b49d85a0701329d5d920841ed80139 /scripts
parent3bd33f9bf3a6b67efb2ccedff2b3d5a5dcd3d30b (diff)
If we don't find a kernel package, then give a better error
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 23805579f..4b920e99d 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -761,6 +761,11 @@ for KERNELARCH in $arches; do
kpackage=$(findPackage $kernelvers)
fi
+ if [ -z "$kpackage" ]; then
+ echo "Unable to find kernel package $kernelvers"
+ continue
+ fi
+
yumdownloader -c $yumconf $kpackage
kpackage="$kpackage.rpm"
if [ ! -f "$kpackage" ]; then