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:
+5
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user