1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

Migrate to --match-archives in mount point detection.

* src/vorta/utils.py (get_mount_points)
This commit is contained in:
real-yfprojects 2022-10-11 19:41:15 +02:00
parent da1b5d2db3
commit 3bab46371c
No known key found for this signature in database
GPG key ID: 00F630DFDEE25747

View file

@ -382,8 +382,8 @@ def get_mount_points(repo_url):
# Archive mount? # Archive mount?
ao = '-a' in cmd ao = '-a' in cmd
if ao or '--glob-archives' in cmd: if ao or '--match-archives' in cmd:
i = cmd.index('-a' if ao else '--glob-archives') i = cmd.index('-a' if ao else '--match-archives')
if len(cmd) >= i + 1 and not SHELL_PATTERN_ELEMENT.search(cmd[i + 1]): if len(cmd) >= i + 1 and not SHELL_PATTERN_ELEMENT.search(cmd[i + 1]):
mount_points[mount_point] = cmd[i + 1] mount_points[mount_point] = cmd[i + 1]
else: else: