...
[05/04 01:13:18 UTC] Installing: libstdc++
[05/04 01:13:18 UTC] (libstdc++) Post script failed
...
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I8efc466b3a18e9c9f2bde05ad26d058178cf90b8
elif what == rpm.RPMCALLBACK_REPACKAGE_PROGRESS:
pass
+ elif what == rpm.RPMCALLBACK_SCRIPT_ERROR:
+ if h is not None:
+ try:
+ hdr, rpmloc = h
+ except:
+ rpmloc = 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.warning('(%s) Post script failed' % pkgname)
def readRpmHeader(ts, filename):
""" Read an rpm header. """