From: Zhang Qiang Date: Mon, 20 Feb 2012 07:57:25 +0000 (+0800) Subject: Don't print warning about repo key not exist X-Git-Tag: 0.7~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4913804ac656a41f3384fffc179da4f5600e7fe8;p=platform%2Fupstream%2Fmic.git Don't print warning about repo key not exist Also print repo refreshing info while backend refreshing repodata. --- diff --git a/mic/utils/misc.py b/mic/utils/misc.py index de38a3d..636fffc 100644 --- a/mic/utils/misc.py +++ b/mic/utils/misc.py @@ -376,7 +376,7 @@ def get_metadata_from_repos(repostrs, cachedir): repokey = _get_metadata_from_repo(baseurl, proxies, cachedir, reponame, "repodata/repomd.xml.key") except CreatorError: repokey = None - msger.warning("\ncan't get %s/%s" % (baseurl, "repodata/repomd.xml.key")) + msger.debug("\ncan't get %s/%s" % (baseurl, "repodata/repomd.xml.key")) my_repo_metadata.append({"name":reponame, "baseurl":baseurl, "repomd":repomd, "primary":primary, "cachedir":cachedir, "proxies":proxies, "patterns":patterns, "comps":comps, "repokey":repokey}) diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index b1ee743..63314a4 100644 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -501,6 +501,7 @@ class Zypp(BackendPlugin): if self.repo_manager.isCached(repo) or not repo.enabled(): return + msger.info('Refreshing repository: %s ...' % name) self.repo_manager.buildCache(repo, zypp.RepoManager.BuildIfNeeded) def __initialize_zypp(self):