25
25
from duplicity import dup_time
26
26
from duplicity import globals
28
full_vol_re = re.compile("^duplicity-full"
29
full_vol_re_short = None
30
full_manifest_re = None
31
full_manifest_re_short = None
33
inc_vol_re_short = None
34
inc_manifest_re = None
35
inc_manifest_re_short = None
37
full_sig_re_short = None
39
new_sig_re_short = None
43
global full_vol_re_short
44
global full_manifest_re
45
global full_manifest_re_short
47
global inc_vol_re_short
48
global inc_manifest_re
49
global inc_manifest_re_short
51
global full_sig_re_short
53
global new_sig_re_short
55
full_vol_re = re.compile("^" + globals.file_prefix + "duplicity-full"
30
57
"\\.vol(?P<num>[0-9]+)"
32
59
"(?P<partial>(\\.part))?"
35
full_vol_re_short = re.compile("^df"
62
full_vol_re_short = re.compile("^" + globals.file_prefix + "df"
36
63
"\\.(?P<time>[0-9a-z]+?)"
37
64
"\\.(?P<num>[0-9a-z]+)"
39
66
"(?P<partial>(\\.p))?"
42
full_manifest_re = re.compile("^duplicity-full"
69
full_manifest_re = re.compile("^" + globals.file_prefix + "duplicity-full"
45
72
"(?P<partial>(\\.part))?"
48
full_manifest_re_short = re.compile("^df"
75
full_manifest_re_short = re.compile("^" + globals.file_prefix + "df"
49
76
"\\.(?P<time>[0-9a-z]+?)"
51
78
"(?P<partial>(\\.p))?"
54
inc_vol_re = re.compile("^duplicity-inc"
81
inc_vol_re = re.compile("^" + globals.file_prefix + "duplicity-inc"
55
82
"\\.(?P<start_time>.*?)"
56
83
"\\.to\\.(?P<end_time>.*?)"
57
84
"\\.vol(?P<num>[0-9]+)"
61
inc_vol_re_short = re.compile("^di"
88
inc_vol_re_short = re.compile("^" + globals.file_prefix + "di"
62
89
"\\.(?P<start_time>[0-9a-z]+?)"
63
90
"\\.(?P<end_time>[0-9a-z]+?)"
64
91
"\\.(?P<num>[0-9a-z]+)"
68
inc_manifest_re = re.compile("^duplicity-inc"
95
inc_manifest_re = re.compile("^" + globals.file_prefix + "duplicity-inc"
69
96
"\\.(?P<start_time>.*?)"
71
98
"\\.(?P<end_time>.*?)"
73
100
"(?P<partial>(\\.part))?"
76
inc_manifest_re_short = re.compile("^di"
103
inc_manifest_re_short = re.compile("^" + globals.file_prefix + "di"
77
104
"\\.(?P<start_time>[0-9a-z]+?)"
78
105
"\\.(?P<end_time>[0-9a-z]+?)"
80
107
"(?P<partial>(\\.p))?"
83
full_sig_re = re.compile("^duplicity-full-signatures"
110
full_sig_re = re.compile("^" + globals.file_prefix + "duplicity-full-signatures"
84
111
"\\.(?P<time>.*?)"
86
113
"(?P<partial>(\\.part))?"
89
full_sig_re_short = re.compile("^dfs"
116
full_sig_re_short = re.compile("^" + globals.file_prefix + "dfs"
90
117
"\\.(?P<time>[0-9a-z]+?)"
92
119
"(?P<partial>(\\.p))?"
95
new_sig_re = re.compile("^duplicity-new-signatures"
122
new_sig_re = re.compile("^" + globals.file_prefix + "duplicity-new-signatures"
96
123
"\\.(?P<start_time>.*?)"
98
125
"\\.(?P<end_time>.*?)"
100
127
"(?P<partial>(\\.part))?"
103
new_sig_re_short = re.compile("^dns"
130
new_sig_re_short = re.compile("^" + globals.file_prefix + "dns"
104
131
"\\.(?P<start_time>[0-9a-z]+?)"
105
132
"\\.(?P<end_time>[0-9a-z]+?)"