rc = subprocess.call(args)
if rc != 0:
raise CreatorError("Failed to dd from %s to %s" % (base_on, self._image))
- self._set_image_size(get_file_size(self._image) * 1024L * 1024L)
+ self._set_image_size(misc.get_file_size(self._image) * 1024L * 1024L)
if os.path.isfile(base_on):
print "Copying file system..."
shutil.copyfile(base_on, self._image)
pkgmgr = pluginmgr.PluginMgr()
pkgmgr.loadPlugins()
- imagers = pmgr.getImagerPlugins()
+ imagers = pkgmgr.getImagerPlugins()
srcimager = None
destimager = None
destimager = icls
if (srcimager and destimager) is None:
- raise CreatorError("Can't convert from %s to %s" %(srcformat, desformat))
+ raise CreatorError("Can't convert from %s to %s" %(srcformat, destformat))
else:
base_on = srcimager.do_unpack(srcimg)
destimager.do_pack(base_on)