From e47b999e6fc676b3fdc59ba5fca3b870a6eed187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Thu, 11 Nov 2010 09:01:07 +0000 Subject: [PATCH] history: Ugly fix for the regression caused by filename changes Since we didn't store distribution and architecture info in history database, takeback was not able to guess old package names. --- pisi/history.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pisi/history.py b/pisi/history.py index f6f03d4b..8a76f964 100644 --- a/pisi/history.py +++ b/pisi/history.py @@ -28,7 +28,11 @@ class PackageInfo: a_release = [autoxml.String, autoxml.mandatory] def __str__(self): - return self.version + "-" + self.release + # FIXME: Do not get these from the config file + distro_id = ctx.config.values.general.distribution_id + arch = ctx.config.values.general.architecture + + return "-".join((self.version, self.release, distro_id, arch)) class Repo: a_operation = [autoxml.String, autoxml.mandatory]