print package name, before install
authorDohyung Kim <dohyung2.kim@samsung.com>
Fri, 4 Sep 2015 12:31:52 +0000 (21:31 +0900)
committeradmin <yuhuan.yang@samsung.com>
Wed, 12 Jul 2017 15:38:28 +0000 (23:38 +0800)
Change-Id: I30f52998b86b8a0d86cd2a633b6d51cfbf5890c2
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
mic/utils/rpmmisc.py

index a524942..4dd3f99 100644 (file)
@@ -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