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.
This commit is contained in:
Fatih Aşıcı
2010-11-11 09:01:07 +00:00
parent fd6c0f77a9
commit e47b999e6f
+5 -1
View File
@@ -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]