From 2f9971782c4f79332d473bba2fefc23508e9205c Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Tue, 22 Jan 2013 00:55:36 +0800 Subject: [PATCH] make clear message info Change-Id: I5717d5d92b604b544ad3ddec7a3eb2eebb9d461b Signed-off-by: Gui Chen --- plugins/backend/yumpkgmgr.py | 6 ++---- plugins/backend/zypppkgmgr.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py index 8f85f9d..1fbf1b2 100644 --- a/plugins/backend/yumpkgmgr.py +++ b/plugins/backend/yumpkgmgr.py @@ -372,7 +372,7 @@ class Yum(BackendPlugin, yum.YumBase): cached_count = 0 download_total_size = sum(map(lambda x: int(x.packagesize), dlpkgs)) - msger.info("\nChecking packages cache and packages integrity ...") + msger.info("\nChecking packages cached ...") for po in dlpkgs: local = po.localPkg() repo = filter(lambda r: r.id == po.repoid, self.repos.listEnabled())[0] @@ -404,9 +404,7 @@ class Yum(BackendPlugin, yum.YumBase): raise CreatorError("No enough space used for installing, " "please resize partition size in ks file") - msger.info("%d packages to be installed, " - "%d packages gotten from cache, " - "%d packages to be downloaded" \ + msger.info("Packages: %d Total, %d Cached, %d Missed" \ % (total_count, cached_count, total_count - cached_count)) try: diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index a1f76b4..41ce2ec 100755 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -480,7 +480,7 @@ class Zypp(BackendPlugin): download_total_size = sum(map(lambda x: int(x.downloadSize()), dlpkgs)) localpkgs = self.localpkgs.keys() - msger.info("Checking packages cache and packages integrity ...") + msger.info("Checking packages cached ...") for po in dlpkgs: # Check if it is cached locally if po.name() in localpkgs: @@ -515,9 +515,7 @@ class Zypp(BackendPlugin): # "please resize partition size in ks file") download_count = total_count - cached_count - msger.info("%d packages to be installed, " - "%d packages gotten from cache, " - "%d packages to be downloaded" \ + msger.info("Packages: %d Total, %d Cached, %d Missed" \ % (total_count, cached_count, download_count)) try: -- 2.7.4