|
...
|
...
|
@@ -105,6 +105,10 @@ class PackageBuilder(object):
|
|
105
|
105
|
except Exception as e:
|
|
106
|
106
|
self.logger.error("Failed while building package:" + package)
|
|
107
|
107
|
self.logger.debug("Chroot with ID: " + chrootID + " not deleted for debugging.")
|
|
|
108
|
+ logFileName = os.path.join(destLogPath, package + ".log")
|
|
|
109
|
+ fileLog = os.popen('tail -n 20 ' + logFileName).read()
|
|
|
110
|
+ self.logger.debug(fileLog)
|
|
|
111
|
+ self.logger.debug()
|
|
108
|
112
|
raise e
|
|
109
|
113
|
if chrootID is not None:
|
|
110
|
114
|
chrUtils.destroyChroot(chrootID)
|