diff options
author | Mart Raudsepp <leio@gentoo.org> | 2019-01-16 02:20:38 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2019-01-16 02:26:53 +0200 |
commit | e555b952ad38ba5dfb50e8453691d892b4d12454 (patch) | |
tree | 6f007c901d701d374b24c2f351ddf4fbe681fc8e | |
parent | gnome: Put "Stable" in the titles when it's a stable tree report (diff) | |
download | gentoo-bumpchecker-e555b952ad38ba5dfb50e8453691d892b4d12454.tar.gz gentoo-bumpchecker-e555b952ad38ba5dfb50e8453691d892b4d12454.tar.bz2 gentoo-bumpchecker-e555b952ad38ba5dfb50e8453691d892b4d12454.zip |
Add workaround for packages with only one version component
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
-rw-r--r-- | modules/package_module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/package_module.py b/modules/package_module.py index e967973..a7b5126 100644 --- a/modules/package_module.py +++ b/modules/package_module.py @@ -88,7 +88,7 @@ class Package(object): @property def minor(self): - return self.major_minor.split('.')[1] + return self.major_minor.split('.')[1] if self.major_minor.find('.') != -1 else 'NONE' # TODO: workaround for gudev, refactor def print_info(self): print("Name: " + str(self.name)) |