From 697d981d355b53bd5872315c15d76da630f1b002 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Sun, 22 Nov 2009 02:12:02 +0100 Subject: Add compat to work with gnome module. --- modules/package_module.py | 5 +++-- modules/xmodular_module.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/package_module.py b/modules/package_module.py index 6e375e3..b3b9f75 100644 --- a/modules/package_module.py +++ b/modules/package_module.py @@ -70,9 +70,10 @@ class Package: return self.name_plus_version class PackageStatus: - def __init__(self, name, stable_version, portage_version, gnome_version, latest_version, status): + def __init__(self, name, portage_version, gnome_version, latest_version, status, stable_version = False): self.name = name - self.stable_version = stable_version + if stable_version is not False: + self.stable_version = stable_version self.portage_version = portage_version self.gnome_version = gnome_version self.latest_version = latest_version diff --git a/modules/xmodular_module.py b/modules/xmodular_module.py index 653318d..b061483 100644 --- a/modules/xmodular_module.py +++ b/modules/xmodular_module.py @@ -205,6 +205,6 @@ def compare_packages(release_packages, latest_packages, packages_in_portage, sta " | lp: " + str(latest_package.version) + \ " | status: " + str(status) - status_packages.append(package_module.PackageStatus(release_package.name, str(stable_portage_package.version), str(portage_package.version), str(release_package.version), str(latest_package.version), status)) + status_packages.append(package_module.PackageStatus(release_package.name, str(portage_package.version), str(release_package.version), str(latest_package.version), status, str(stable_portage_package.version))) return status_packages -- cgit v1.2.3-65-gdbad