From dac31eaae84e755a651a13aef0cc120fbd8dc949 Mon Sep 17 00:00:00 2001 From: Shuangquan Zhou Date: Thu, 11 Aug 2011 14:23:16 +0800 Subject: [PATCH] Correct some typo mistakes --- micng/imager/livecd.py | 2 +- tools/micng | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/micng/imager/livecd.py b/micng/imager/livecd.py index b895355..1717289 100644 --- a/micng/imager/livecd.py +++ b/micng/imager/livecd.py @@ -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) diff --git a/tools/micng b/tools/micng index 182e06b..66ae785 100755 --- a/tools/micng +++ b/tools/micng @@ -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) -- 2.7.4