diff options
author | Gui Chen <gui.chen@intel.com> | 2013-01-22 00:55:36 +0800 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-01-22 01:38:02 +0800 |
commit | 2f9971782c4f79332d473bba2fefc23508e9205c (patch) | |
tree | 3ec9a6a79393469db8096660da89f53ad2c59fb5 /plugins | |
parent | 0d76caab58a11fee0b5ab990864c867dc049d7be (diff) | |
download | mic-2f9971782c4f79332d473bba2fefc23508e9205c.tar.gz mic-2f9971782c4f79332d473bba2fefc23508e9205c.tar.bz2 mic-2f9971782c4f79332d473bba2fefc23508e9205c.zip |
make clear message info
Change-Id: I5717d5d92b604b544ad3ddec7a3eb2eebb9d461b
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/backend/yumpkgmgr.py | 6 | ||||
-rwxr-xr-x | 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: |