8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9310acc commit 3eceb60Copy full SHA for 3eceb60
common/tools.py
@@ -529,9 +529,12 @@ def rsyncCaps(data = None):
529
data = proc.communicate()[0]
530
caps = []
531
#rsync >= 3.1 does provide --info=progress2
532
- m = re.match(r'rsync\s*version\s*(\d\.\d)', data)
533
- if m and StrictVersion(m.group(1)) >= StrictVersion('3.1'):
534
- caps.append('progress2')
+ matchers = [r'rsync\s*version\s*(\d\.\d)', r'rsync\s*version\s*v(\d\.\d.\d)']
+ for matcher in matchers:
+ m = re.match(matcher, data)
535
+ if m and StrictVersion(m.group(1)) >= StrictVersion('3.1'):
536
+ caps.append('progress2')
537
+ break
538
539
#all other capabilities are separated by ',' between
540
#'Capabilities:' and '\n\n'
0 commit comments