File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ Change log
77
77
78
78
Released: Not yet
79
79
80
+ * Fix #249: Handle fetching GPG version when not the first item in the configuration.
81
+
80
82
81
83
0.5.4
82
84
-----
Original file line number Diff line number Diff line change @@ -1053,7 +1053,7 @@ def fpr(self, args):
1053
1053
self .fingerprint = self .fingerprint or args [9 ]
1054
1054
1055
1055
1056
- VERSION_RE = re .compile (r'^cfg :version:(\d+(\.\d+)*)' .encode ('ascii' ))
1056
+ VERSION_RE = re .compile (r'\bcfg :version:(\d+(\.\d+)*)' .encode ('ascii' ))
1057
1057
HEX_DIGITS_RE = re .compile (r'[0-9a-f]+$' , re .I )
1058
1058
PUBLIC_KEY_RE = re .compile (r'gpg: public key is (\w+)' )
1059
1059
@@ -1154,7 +1154,7 @@ def __init__(self,
1154
1154
self ._collect_output (p , result , stdin = p .stdin )
1155
1155
if p .returncode != 0 : # pragma: no cover
1156
1156
raise ValueError ('Error invoking gpg: %s: %s' % (p .returncode , result .stderr ))
1157
- m = VERSION_RE .match (result .data )
1157
+ m = VERSION_RE .search (result .data )
1158
1158
if not m : # pragma: no cover
1159
1159
self .version = None
1160
1160
else :
You can’t perform that action at this time.
0 commit comments