Commit ac94e6d4 authored by Mike Hibler's avatar Mike Hibler

If called for an image with size/deltasize == 0, just assume a full image.

This happens when called from imagevalidate without the update (-u) option
on a new image. Note that if imagevalidate was called with -u, then the
size would get set before calling imageinfo and we would not have seen a
problem.
parent f797a96b
...@@ -164,8 +164,11 @@ else { ...@@ -164,8 +164,11 @@ else {
if ($image->HaveFullImage()) { if ($image->HaveFullImage()) {
$imagepath = $image->FullImageFile(); $imagepath = $image->FullImageFile();
} }
else { elsif ($image->HaveDeltaImage()) {
$imagepath = $image->DeltaImageFile(); $imagepath = $image->DeltaImageFile();
} else {
# Size may not have been initialized yet, assume full image
$imagepath = $image->FullImageFile();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment