Fix output warning message about overwrite image.

Overwrite message was displayed only if image place on
root partition.
master
Mike Hiretsky 14 years ago
parent c5716db0e3
commit 04d0e8b7ea

@ -212,12 +212,12 @@ class cl_builder(color_print):
imagefile = self.clVars.Get('cl_builder_image')
if imagefile:
self.printSUCCESS(_("Image will be created at: %s")% imagefile)
if path.exists(imagefile):
self.printWARNING(_("WARNING") +": " +
_("image already exists") + ", "+
_("continuation of the operation will overwrite it"))
if self.getParentMountFor(path.dirname(path.normpath(
imagefile))) == "/":
if path.exists(imagefile):
self.printWARNING(_("WARNING") +": " +
_("image already exists") + ", "+
_("continuation of the operation will overwrite it"))
if self.clVars.Get('os_root_type')=='livecd':
self.printWARNING(_("WARNING") +": " +
_("image will be created on temporary filesystem"))

Loading…
Cancel
Save