summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-11-22 02:12:02 +0100
committerTomáš Chvátal <scarabeus@gentoo.org>2009-11-22 02:12:02 +0100
commit697d981d355b53bd5872315c15d76da630f1b002 (patch)
treef25a6ba8e84e54fd94a78ad942c425e63f583a49
parent[x-modular] Add support for listing stable packages. (diff)
downloadgentoo-bumpchecker-697d981d355b53bd5872315c15d76da630f1b002.tar.gz
gentoo-bumpchecker-697d981d355b53bd5872315c15d76da630f1b002.tar.bz2
gentoo-bumpchecker-697d981d355b53bd5872315c15d76da630f1b002.zip
Add compat to work with gnome module.
-rw-r--r--modules/package_module.py5
-rw-r--r--modules/xmodular_module.py2
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