calcurse-caldav: Fix version check
Since commit 41389ab (args.c: Revise help/usage/version output, 2016-01-28), the version string starts with "calcurse" (lowercase). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
e491109718
commit
fb54b56cac
@ -64,7 +64,7 @@ def calcurse_remove(objhash):
|
||||
|
||||
def calcurse_version():
|
||||
p = subprocess.Popen([calcurse, '--version'], stdout=subprocess.PIPE)
|
||||
m = re.match('Calcurse ([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9]+)-)?',
|
||||
m = re.match('calcurse ([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9]+)-)?',
|
||||
p.communicate()[0].decode('utf-8'))
|
||||
if not m:
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user