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:
9b8dd34
)
print package name, before install
author
Dohyung Kim
<dohyung2.kim@samsung.com>
Fri, 4 Sep 2015 12:31:52 +0000
(21:31 +0900)
committer
xiaojuan.mao
<xiaojuan.mao@samsung.com>
Thu, 13 Jul 2017 03:21:35 +0000
(11:21 +0800)
Change-Id: I30f52998b86b8a0d86cd2a633b6d51cfbf5890c2
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
mic/utils/rpmmisc.py
patch
|
blob
|
history
diff --git
a/mic/utils/rpmmisc.py
b/mic/utils/rpmmisc.py
index
135e458
..
eb481f8
100644
(file)
--- a/
mic/utils/rpmmisc.py
+++ b/
mic/utils/rpmmisc.py
@@
-112,6
+112,13
@@
class RPMInstallCallback:
rpmloc = h
hdr = readRpmHeader(self.ts, h)
+ m = re.match("(.*)-(\d+.*)-(\d+\.\d+)\.(.+)\.rpm", os.path.basename(rpmloc))
+ if m:
+ pkgname = m.group(1)
+ else:
+ pkgname = os.path.basename(rpmloc)
+ msger.info("Next install: %s " % pkgname)
+
handle = self._makeHandle(hdr)
fd = os.open(rpmloc, os.O_RDONLY)
self.callbackfilehandles[handle]=fd