mirror of
https://github.com/munki/munki.git
synced 2026-05-04 19:39:22 -05:00
MunkiLooseVersion objects now correctly initialized when given an empty string.
This commit is contained in:
@@ -924,6 +924,10 @@ def getInstallerPkgInfo(filename):
|
||||
class MunkiLooseVersion (version.LooseVersion):
|
||||
'''Subclass version.LooseVersion to compare things like
|
||||
"10.6" and "10.6.0" as equal'''
|
||||
|
||||
def __init__ (self, vstring=None):
|
||||
if vstring is not None:
|
||||
self.parse(vstring)
|
||||
|
||||
def __pad__(self, version_list, max_length):
|
||||
"""Pad a version list by adding extra 0
|
||||
|
||||
Reference in New Issue
Block a user