From 379163ed98d5b251b91775a0a06f5a0871a54a1c Mon Sep 17 00:00:00 2001 From: JF Ding Date: Thu, 22 Sep 2011 14:09:00 +0800 Subject: [PATCH] minor changes of commments --- mic/utils/fs_related.py | 2 +- plugins/backend/zypppkgmgr.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 80c51b6..e38e443 100644 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -45,7 +45,7 @@ def truncate_url(url, width): return os.path.basename(url)[0:width] class TextProgress(object): - # make the manager class as singleton + # make the class as singleton _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index bc87e26..3eb4b32 100644 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -469,6 +469,7 @@ class Zypp(BackendPlugin): 'Could not open local rpm file: %s: %s' % (self.localpath, e) arch = zypp.Arch(hdr.arch) if self.creator.target_arch == None: + # TODO, get the default_arch from conf or detected from global settings sysarch = zypp.Arch('i686') else: sysarch = zypp.Arch(self.creator.target_arch) -- 2.7.4