Correct some typo mistakes
authorShuangquan Zhou <shuangquan.zhou@intel.com>
Thu, 11 Aug 2011 06:23:16 +0000 (14:23 +0800)
committerShuangquan Zhou <shuangquan.zhou@intel.com>
Thu, 11 Aug 2011 06:23:16 +0000 (14:23 +0800)
micng/imager/livecd.py
tools/micng

index b895355..1717289 100644 (file)
@@ -172,7 +172,7 @@ class LiveImageCreatorBase(LoopImageCreator):
                 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)
index 182e06b..66ae785 100755 (executable)
@@ -63,7 +63,7 @@ class Micng(cmdln.Cmdln):
 
         pkgmgr = pluginmgr.PluginMgr()
         pkgmgr.loadPlugins()
-        imagers = pmgr.getImagerPlugins()
+        imagers = pkgmgr.getImagerPlugins()
 
         srcimager = None
         destimager = None
@@ -74,7 +74,7 @@ class Micng(cmdln.Cmdln):
                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)