projects
/
platform
/
upstream
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2f73b6
)
fix showing incorrect total install number in some case
author
Gui Chen
<gui.chen@intel.com>
Sun, 9 Dec 2012 05:49:38 +0000
(13:49 +0800)
committer
Gui Chen
<gui.chen@intel.com>
Wed, 12 Dec 2012 11:33:44 +0000
(19:33 +0800)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/rpmmisc.py
patch
|
blob
|
history
diff --git
a/mic/utils/rpmmisc.py
b/mic/utils/rpmmisc.py
index
c9c2ba7
..
5cd7b46
100644
(file)
--- a/
mic/utils/rpmmisc.py
+++ b/
mic/utils/rpmmisc.py
@@
-187,8
+187,9
@@
class RPMInstallCallback:
handle = self._makeHandle(hdr)
fd = os.open(rpmloc, os.O_RDONLY)
self.callbackfilehandles[handle]=fd
- self.total_installed += 1
- self.installed_pkg_names.append(hdr['name'])
+ if hdr['name'] not in self.installed_pkg_names:
+ self.installed_pkg_names.append(hdr['name'])
+ self.total_installed += 1
return fd
else:
self._localprint("No header - huh?")