From 660fa9183c14896dc7381dc48b6b81d2d61d14ae Mon Sep 17 00:00:00 2001 From: Robin Roth Date: Wed, 12 Feb 2014 17:14:43 +0100 Subject: [PATCH] remove check for version string this check does not get used anywhere and is not needed as zypper/rpm can handle version information directly --- library/packaging/zypper | 7 ------- 1 file changed, 7 deletions(-) diff --git a/library/packaging/zypper b/library/packaging/zypper index 887ec108c68..6b272a0f994 100644 --- a/library/packaging/zypper +++ b/library/packaging/zypper @@ -196,13 +196,6 @@ def main(): result['name'] = name result['state'] = state - # Decide if the name contains a version number. - match = re.search("-[0-9]", name) - if match: - specific_version = True - else: - specific_version = False - # Get package state installed_state = get_package_state(module, name)