diff --git a/pisi/history.py b/pisi/history.py index a019876c..a7ac4150 100644 --- a/pisi/history.py +++ b/pisi/history.py @@ -76,8 +76,8 @@ class History(xmlfile.XmlFile): for histInfo, pkgInfo in [(package.before, pkgBefore), (package.after, pkgAfter)]: if pkgInfo: - histInfo.version = pkgInfo.version - histInfo.release = pkgInfo.release - histInfo.build = pkgInfo.build + histInfo.version = str(pkgInfo.version) + histInfo.release = str(pkgInfo.release) + histInfo.build = build and str(pkgInfo.build) self.operation.packages.append(package)