summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2019-01-16 02:20:38 +0200
committerMart Raudsepp <leio@gentoo.org>2019-01-16 02:26:53 +0200
commite555b952ad38ba5dfb50e8453691d892b4d12454 (patch)
tree6f007c901d701d374b24c2f351ddf4fbe681fc8e
parentgnome: Put "Stable" in the titles when it's a stable tree report (diff)
downloadgentoo-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.py2
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))