Status: | Merged |
---|---|
Merged at revision: | 1245 |
Proposed branch: | lp:~mterry/deja-dup/877631 |
Merge into: | lp:deja-dup/22 |
Diff against target: |
193 lines (+66/-15) 5 files modified
common/Duplicity.vala (+15/-8) preferences/Preferences.vala (+4/-0) tests/backup/encrypt (+3/-1) tests/backup/encrypt-bin/duplicity (+37/-0) tests/base.py (+7/-6) |
To merge this branch: | bzr merge lp:~mterry/deja-dup/877631 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Approve | ||
Review via email: mp+81021@code.launchpad.net |
Commit message
Description of the change
See bug 877631, comment 16 for details.
The old check was not robust, but it was OK as long as the string was not translatable. Now it is, so we need to check something besides the user-visible string. I've changed it to check for the brackets around the file list.
Test for this is backup/encrypt.
Ruben Verhack (ruben-verhack) wrote : | # |
Hey,
Have you seen the latest news already? I'm so excited, it's so cool! Please take a look http://
ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hi friend!
Have you heard the latest gossip? This is what you have to read http://
ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hello friend,
There is such a nice place we've visited recently, have you been there yet? Just take a look http://
Yours sincerely, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Dear,
Look what I've just found! It's such a beauty, please take a look http://
ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hello!
Please take a look at all that stuff and tell me what you think about it, the info is here http://
All best, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hi friend!
Have you seen that nice stuff already? I think it may be helpful to you, check it out http://
Later, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hello,
I've found some fresh information that you were looking for, it may be useful for you, just take a look http://
Speak to you later, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Yo!
Have you seen that stuff already? It so cool, you'll be really surprised, check it out here http://
Bests, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hello!
I've seen such an amazing thing lately, you're going to like it I'm sure! Here, take a look http://
Hugs, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Hey,
I've picked some cool stuff for you, you're going to love this! Check it out http://
Thx, ruben.verhack
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Hi,
Just wanted to tell you hello and show you something cool, take a look at that stuff http://
Very truly yours, ruben.verhack
Ruben Verhack (ruben-verhack) wrote : | # |
Dear,
Look what I've found on the web, this is something new I guess, you'll be excited. More info here http://
ruben.verhack
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Dear!
Wow, my friends have made a really cool surprise for me, you'll love that) please take a look http://
Best, ruben.verhack
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Hello friend,
Have you already seen those guys? They are so cool, just take a look, I love them doing all that amazing stuff http://
ruben.verhack
From: mp81021 [mailto:<email address hidden>]
Sent: Wednesday, May 17, 2017 12:55 AM
To: <email address hidden>
Subject: He's short!!!!!
It's 1:15 CST as I post this. I stayed in tonight, listened to the idiots next door light fireworks and try to burn down the neighborhood, watched the West Wing after football was over, and started drinking from my stash of 9 different craft beers that I specifically picked out at the beginning of break once I got home and now have to consume within the next 24 hours. Oh, and I knitted a shit ton too. Athbhliain faoi mhaise dhuit (Happy New Year)!!! May this new year be an improvement on the last.
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Greetings!
I think this story is really awesome, you're going to love it, please read it here http://
Yours, ruben.verhack
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Hey friend,
My friend has just told me such a great news, I'm so excited, please read it here http://
Cheers, ruben.verhack
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Hi,
Have you already seen that stuff? It is so great that I'm sure you'll love it, check it out http://
Hugs, Debbie Saldana
Ruben Verhack (ruben-verhack) : | # |
Ruben Verhack (ruben-verhack) wrote : | # |
Hello,
I've read an article on some great stuff, it seems just amazing, please read it here http://
See you around, Reginald Hannah
From: mp81021 [mailto:<email address hidden>]
Sent: Thursday, July 27, 2017 6:44 PM
To: <email address hidden>
Subject: EU West
It feels...OK
I'm 34 and stuff seems like it's just ticking along yet is pretty precarious.
I have a decent job but don't feel like I have a career or anything that I'm getting better at.
It seems like every time I try to make progress I get knocked back by my health or emotional issues. It's been pretty discouraging lately.
That's pretty much it, but today is a new day so might as well try it again.
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
Greetings!
You might be a little doubtful about the effects of this diet, but you need to try it for yourself; the results are real. After conducting our own personal study we are pleased to see that people really are finding success with it (myself included).reading more here http://
Ruben Verhack (ruben-verhack) wrote : | # |
Content-
Content-Type: text/plain; charset="utf-8"
SGksIA0KDQpJJ3Z
J3ZlIGdvdCB0byB
Y29sbGFnZWt1bnN
WkM1dVpYUS0NCg0
Ruben Verhack (ruben-verhack) wrote : | # |
Many affiliate networks exist to connect merchants with affiliate site publishers who can help sell their goods.
Keep in mind that a site peppered with ads and no authority or trust can look and feel like spam, and you won't get good results.
read more here http://
Ruben Verhack (ruben-verhack) wrote : | # |
Hey!
Just look at that great stuff out here! You are going to love it, I swear! More information here http://
Rushing, Teresa Beavers
Ruben Verhack (ruben-verhack) wrote : | # |
Greetings!
We are waiting for something exciting to happen soon, you're going to like it! Please learning much more about it here http://
Yours, Nathan Lacey
From: mp81021 [mailto:<email address hidden>]
Sent: Monday, October 02, 2017 6:12 PM
To: <email address hidden>
Subject: Blanket
IQ has been proven to be an irrelevant measurement of intelligence. So yes I would take the money and run with it. Probably to somewhere stupid where I'd blow it all on some gold digging woman who leaves me pennilessness at the age of 60 and I'm stuck living off of social security.
That's the plan when I get rich without losing any IQ points. I see no differences in my lifestyle there.
Sent from Mail for Windows 10
Ruben Verhack (ruben-verhack) wrote : | # |
I've just found that article and thought it will likely be really helpful to you , you may find it here http://
Ruben Verhack (ruben-verhack) wrote : | # |
Flight Coupons, Promo Codes & Deals - Dec 2017
Top Deal 55% Off: Christmas Flight Deals and New Year Flight Deals.
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>. (24/7 Support.
Don't Miss These Handpicked Fares
<table width="
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>. (24/7 Support.)
Ruben Verhack (ruben-verhack) wrote : | # |
Flight Coupons, Promo Codes & Deals - Dec 2017
Top Deal 55% Off: Christmas Flight Deals and New Year Flight Deals.
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>. (24/7 Support.
Don't Miss These Handpicked Fares
<table width="
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>. (24/7 Support.)
Ruben Verhack (ruben-verhack) wrote : | # |
The end of the year typically entails some last-minute Christmas shopping, finalizing plans to see family and friends, and — if you're marketers like us — prepping for next year's campaigns. It also means we get to enjoy some of the most heartwarming and humorous marketing efforts we'll see all year.
From commercials, to interactive websites, to social media contests, there's always a fair share of top-notch marketing going on in November and December — and this year proved as much.<br><br>Check our free holiday marketing guide here to learn about the trends shaping this 2017 holiday season.
8 Great Holiday Marketing Campaigns of 2017
<br>1) 23 Secrets To Booking Cheap Flights (Flight Coupons, Promo Codes & Deals - Dec 2017) - Business Insider.<br>Top Deal 55% Off: Christmas Flight Deals and New Year Flight Deals.
Primary. Please call us at this number <span style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</span>. <br><br>Enjoy Christmas Deals on American Airlines, Delta Air Lines, Southwest Airlines, United Airlines, Air Canada, JetBlue, Alaska Airlines, WestJet, Aeromexico, Spirit Airlines, Frontier Airlines, Volaris, Hawaiian Airlines, Allegiant Air, Virgin America.
Don't Miss These Handpicked Fares<br>
<table width="
Ruben Verhack (ruben-verhack) wrote : | # |
Flight Coupons, Promo Codes & Deals - Dec 2017
Top Deal 55% Off: Christmas Flight Deals and New Year Flight Deals.
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>. <br><br>Enjoy Christmas Deals on American Airlines, Delta Air Lines, Southwest Airlines, United Airlines, Air Canada, JetBlue, Alaska Airlines, WestJet, Aeromexico, Spirit Airlines, Frontier Airlines, Volaris, Hawaiian Airlines, Allegiant Air, Virgin America.
Don't Miss These Handpicked Fares
<table width="
Call to Us and Get Discount Now <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Ruben Verhack (ruben-verhack) wrote : | # |
Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="
Primary: (888) 369-2751. 24/7 Support.
Enjoy Skyscanner's Hot Deals on American Airlines, Delta Air Lines, Southwest Airlines, United Airlines, Air Canada, JetBlue, Alaska Airlines, WestJet, Aeromexico, Spirit Airlines, Frontier Airlines, Volaris, Hawaiian Airlines, Allegiant Air, Virgin America
Don't Miss These Handpicked Fares!
Primary <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>. 24/7 Support
Ruben Verhack (ruben-verhack) wrote : | # |
Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="
Ruben Verhack (ruben-verhack) wrote : | # |
Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="
Preview Diff
1 | === modified file 'common/Duplicity.vala' | |||
2 | --- common/Duplicity.vala 2011-10-20 16:31:27 +0000 | |||
3 | +++ common/Duplicity.vala 2011-11-02 13:57:26 +0000 | |||
4 | @@ -103,6 +103,7 @@ | |||
5 | 103 | static File slash_root; | 103 | static File slash_root; |
6 | 104 | static File slash_home; | 104 | static File slash_home; |
7 | 105 | static File slash_home_me; | 105 | static File slash_home_me; |
8 | 106 | static Regex gpg_regex; | ||
9 | 106 | 107 | ||
10 | 107 | bool has_checked_contents = false; | 108 | bool has_checked_contents = false; |
11 | 108 | bool has_non_home_contents = false; | 109 | bool has_non_home_contents = false; |
12 | @@ -143,6 +144,15 @@ | |||
13 | 143 | slash_home = File.new_for_path("/home"); | 144 | slash_home = File.new_for_path("/home"); |
14 | 144 | slash_home_me = File.new_for_path(Environment.get_home_dir()); | 145 | slash_home_me = File.new_for_path(Environment.get_home_dir()); |
15 | 145 | } | 146 | } |
16 | 147 | |||
17 | 148 | if (gpg_regex == null) { | ||
18 | 149 | try { | ||
19 | 150 | gpg_regex = new Regex(".*\\[.*\\.(g|gpg)'.*]$"); | ||
20 | 151 | } | ||
21 | 152 | catch (Error e) { | ||
22 | 153 | error("%s\n", e.message); // this is a programmer error, so use error() | ||
23 | 154 | } | ||
24 | 155 | } | ||
25 | 146 | } | 156 | } |
26 | 147 | 157 | ||
27 | 148 | ~Duplicity() { | 158 | ~Duplicity() { |
28 | @@ -1108,16 +1118,13 @@ | |||
29 | 1108 | if (firstline.length > 1) { | 1118 | if (firstline.length > 1) { |
30 | 1109 | switch (int.parse(firstline[1])) { | 1119 | switch (int.parse(firstline[1])) { |
31 | 1110 | case DEBUG_GENERIC: | 1120 | case DEBUG_GENERIC: |
32 | 1111 | // In non-modern versions of duplicity, this list of files is the only | ||
33 | 1112 | // way to tell whether the backup is encrypted or not. This message | ||
34 | 1113 | // was not translated in duplicity before switching to a better method | ||
35 | 1114 | // of detecting, so we can safely check for it. | ||
36 | 1115 | if (mode == Operation.Mode.STATUS && | 1121 | if (mode == Operation.Mode.STATUS && |
37 | 1116 | !DuplicityInfo.get_default().reports_encryption && | 1122 | !DuplicityInfo.get_default().reports_encryption && |
42 | 1117 | !detected_encryption && | 1123 | !detected_encryption) { |
43 | 1118 | text.has_prefix("Extracting backup chains from list of files:")) { | 1124 | if (gpg_regex != null && gpg_regex.match(text)) { |
44 | 1119 | detected_encryption = true; | 1125 | detected_encryption = true; |
45 | 1120 | existing_encrypted = text.contains(".gpg'") || text.contains(".g'"); | 1126 | existing_encrypted = true; |
46 | 1127 | } | ||
47 | 1121 | } | 1128 | } |
48 | 1122 | break; | 1129 | break; |
49 | 1123 | } | 1130 | } |
50 | 1124 | 1131 | ||
51 | === modified file 'preferences/Preferences.vala' | |||
52 | --- preferences/Preferences.vala 2011-10-19 15:32:50 +0000 | |||
53 | +++ preferences/Preferences.vala 2011-11-02 13:57:26 +0000 | |||
54 | @@ -360,6 +360,10 @@ | |||
55 | 360 | notebook.append_page(table, null); | 360 | notebook.append_page(table, null); |
56 | 361 | notebook.set_tab_label_text(table, _("Schedule")); | 361 | notebook.set_tab_label_text(table, _("Schedule")); |
57 | 362 | 362 | ||
58 | 363 | var accessible = notebook.get_accessible(); | ||
59 | 364 | if (accessible != null) | ||
60 | 365 | accessible.set_name(_("Categories")); | ||
61 | 366 | |||
62 | 363 | notebook.expand = true; | 367 | notebook.expand = true; |
63 | 364 | settings_page.add(notebook); | 368 | settings_page.add(notebook); |
64 | 365 | 369 | ||
65 | 366 | 370 | ||
66 | === modified file 'tests/backup/encrypt' | |||
67 | --- tests/backup/encrypt 2011-07-25 15:08:11 +0000 | |||
68 | +++ tests/backup/encrypt 2011-11-02 13:57:26 +0000 | |||
69 | @@ -20,7 +20,8 @@ | |||
70 | 20 | # Test whether we correctly ask or not for the encryption password | 20 | # Test whether we correctly ask or not for the encryption password |
71 | 21 | 21 | ||
72 | 22 | import sys | 22 | import sys |
74 | 23 | sys.path.insert(0, sys.path[0]+'/..') | 23 | scriptdir=sys.path[0] |
75 | 24 | sys.path.insert(0, scriptdir+'/..') | ||
76 | 24 | import base | 25 | import base |
77 | 25 | import os | 26 | import os |
78 | 26 | import ldtp | 27 | import ldtp |
79 | @@ -34,6 +35,7 @@ | |||
80 | 34 | 35 | ||
81 | 35 | def encrypt(): | 36 | def encrypt(): |
82 | 36 | base.setup() | 37 | base.setup() |
83 | 38 | os.environ['PATH'] = os.path.join(scriptdir, 'encrypt-bin') + ":" + os.environ['PATH'] | ||
84 | 37 | base.backup_simple(backend='file', encrypt=True, includes=['data/simple']) | 39 | base.backup_simple(backend='file', encrypt=True, includes=['data/simple']) |
85 | 38 | basenum = len(os.listdir(base.get_temp_name('local'))) | 40 | basenum = len(os.listdir(base.get_temp_name('local'))) |
86 | 39 | base.backup_simple(encrypt=True, finish=False, includes=['/usr/bin']) | 41 | base.backup_simple(encrypt=True, finish=False, includes=['/usr/bin']) |
87 | 40 | 42 | ||
88 | === added directory 'tests/backup/encrypt-bin' | |||
89 | === added file 'tests/backup/encrypt-bin/duplicity' | |||
90 | --- tests/backup/encrypt-bin/duplicity 1970-01-01 00:00:00 +0000 | |||
91 | +++ tests/backup/encrypt-bin/duplicity 2011-11-02 13:57:26 +0000 | |||
92 | @@ -0,0 +1,37 @@ | |||
93 | 1 | #!/usr/bin/env python | ||
94 | 2 | # -*- Mode: Python; indent-tabs-mode: nil; tab-width: 2; coding: utf-8 -*- | ||
95 | 3 | # | ||
96 | 4 | # This file is part of Déjà Dup. | ||
97 | 5 | # For copyright information, see AUTHORS. | ||
98 | 6 | # | ||
99 | 7 | # Déjà Dup is free software; you can redistribute it and/or modify | ||
100 | 8 | # it under the terms of the GNU General Public License as published by | ||
101 | 9 | # the Free Software Foundation; either version 3 of the License, or | ||
102 | 10 | # (at your option) any later version. | ||
103 | 11 | # | ||
104 | 12 | # Déjà Dup is distributed in the hope that it will be useful, but | ||
105 | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
106 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
107 | 15 | # General Public License for more details. | ||
108 | 16 | # | ||
109 | 17 | # You should have received a copy of the GNU General Public License | ||
110 | 18 | # along with Déjà Dup. If not, see <http://www.gnu.org/licenses/>. | ||
111 | 19 | |||
112 | 20 | # This file acts like a duplicity wrapper. | ||
113 | 21 | # It transforms any instances of "Extracting backup chains from list of files:" | ||
114 | 22 | # to "Translation:" (to help catch things like bug | ||
115 | 23 | # https://bugs.launchpad.net/deja-dup/+bug/877631) | ||
116 | 24 | |||
117 | 25 | import os | ||
118 | 26 | import sys | ||
119 | 27 | import subprocess | ||
120 | 28 | |||
121 | 29 | # Drop the PATH override that pointed to this script | ||
122 | 30 | os.environ['PATH'] = os.environ['PATH'].split(':', 1)[-1] | ||
123 | 31 | |||
124 | 32 | extra_args = [] | ||
125 | 33 | |||
126 | 34 | p1 = subprocess.Popen(['duplicity'] + sys.argv[1:], stdout=subprocess.PIPE) | ||
127 | 35 | p2 = subprocess.Popen(["sed", "-s", "s/Extracting backup chains from list of files:/Translation:/g"], stdin=p1.stdout) | ||
128 | 36 | p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. | ||
129 | 37 | p2.wait() | ||
130 | 0 | 38 | ||
131 | === modified file 'tests/base.py' | |||
132 | --- tests/base.py 2011-08-30 18:57:19 +0000 | |||
133 | +++ tests/base.py 2011-11-02 13:57:26 +0000 | |||
134 | @@ -420,7 +420,7 @@ | |||
135 | 420 | 420 | ||
136 | 421 | def walk_prefs(backend, dest, includes, excludes): | 421 | def walk_prefs(backend, dest, includes, excludes): |
137 | 422 | if backend == 'file': | 422 | if backend == 'file': |
139 | 423 | ldtp.selectrow('frmBackup', 'tblCategories', 'Storage') | 423 | ldtp.selecttab('frmBackup', 'ptlCategories', 'Storage') |
140 | 424 | 424 | ||
141 | 425 | if dest is None: | 425 | if dest is None: |
142 | 426 | dest = get_temp_name('local') | 426 | dest = get_temp_name('local') |
143 | @@ -432,7 +432,7 @@ | |||
144 | 432 | ldtp.settextvalue('frmBackup', 'txt0', dest) # FIXME txt0 is bad name | 432 | ldtp.settextvalue('frmBackup', 'txt0', dest) # FIXME txt0 is bad name |
145 | 433 | ldtp.wait(1) # without this, sometimes ldtp moves so fast, deja-dup doesn't notice dest | 433 | ldtp.wait(1) # without this, sometimes ldtp moves so fast, deja-dup doesn't notice dest |
146 | 434 | 434 | ||
148 | 435 | ldtp.selectrow('frmBackup', 'tblCategories', 'Folders') | 435 | ldtp.selecttab('frmBackup', 'ptlCategories', 'Folders') |
149 | 436 | if includes is not None: | 436 | if includes is not None: |
150 | 437 | set_file_list('frmBackup', 'tblIncludeList', 'btnIncludeListAdd', 'btnIncludeListRemove', includes) | 437 | set_file_list('frmBackup', 'tblIncludeList', 'btnIncludeListAdd', 'btnIncludeListRemove', includes) |
151 | 438 | if excludes is not None: | 438 | if excludes is not None: |
152 | @@ -455,12 +455,13 @@ | |||
153 | 455 | 455 | ||
154 | 456 | if guivisible('frmBackup', 'btnJustshowmybackupsettings'): | 456 | if guivisible('frmBackup', 'btnJustshowmybackupsettings'): |
155 | 457 | ldtp.click('frmBackup', 'btnJustshowmybackupsettings') | 457 | ldtp.click('frmBackup', 'btnJustshowmybackupsettings') |
156 | 458 | remap('frmBackup') | ||
157 | 458 | 459 | ||
158 | 459 | if backend is not None or includes is not None or excludes is not None: | 460 | if backend is not None or includes is not None or excludes is not None: |
159 | 460 | walk_prefs(backend=backend, dest=dest, includes=includes, | 461 | walk_prefs(backend=backend, dest=dest, includes=includes, |
160 | 461 | excludes=excludes) | 462 | excludes=excludes) |
161 | 462 | 463 | ||
163 | 463 | ldtp.selectrow('frmBackup', 'tblCategories', 'Overview') | 464 | ldtp.selecttab('frmBackup', 'ptlCategories', 'Overview') |
164 | 464 | ldtp.click('frmBackup', 'btnBackUpNow') | 465 | ldtp.click('frmBackup', 'btnBackUpNow') |
165 | 465 | waitforgui('frmBackUp') | 466 | waitforgui('frmBackUp') |
166 | 466 | 467 | ||
167 | @@ -483,7 +484,7 @@ | |||
168 | 483 | if guivisible('frmBackup', 'btnIwanttorestorefilesfromapreviousbackup…'): | 484 | if guivisible('frmBackup', 'btnIwanttorestorefilesfromapreviousbackup…'): |
169 | 484 | ldtp.click('frmBackup', 'btnIwanttorestorefilesfromapreviousbackup…') | 485 | ldtp.click('frmBackup', 'btnIwanttorestorefilesfromapreviousbackup…') |
170 | 485 | else: | 486 | else: |
172 | 486 | ldtp.selectrow('frmBackup', 'tblCategories', 'Overview') | 487 | ldtp.selecttab('frmBackup', 'ptlCategories', 'Overview') |
173 | 487 | ldtp.click('frmBackup', 'btnRestore…') | 488 | ldtp.click('frmBackup', 'btnRestore…') |
174 | 488 | 489 | ||
175 | 489 | waitforgui('frmRestore') | 490 | waitforgui('frmRestore') |
176 | @@ -492,7 +493,7 @@ | |||
177 | 492 | walk_restore_prefs('frmRestore', backend, dest) | 493 | walk_restore_prefs('frmRestore', backend, dest) |
178 | 493 | ldtp.click('frmRestore', 'btnForward') | 494 | ldtp.click('frmRestore', 'btnForward') |
179 | 494 | 495 | ||
181 | 495 | wait_for_finish('frmRestore', 'lblRestorefromWhen?', 200) | 496 | wait_for_finish('frmRestore', 'lblRestoreFromWhen?', 200) |
182 | 496 | if date: | 497 | if date: |
183 | 497 | ldtp.comboselect('frmRestore', 'cboDate', date) | 498 | ldtp.comboselect('frmRestore', 'cboDate', date) |
184 | 498 | ldtp.click('frmRestore', 'btnForward') | 499 | ldtp.click('frmRestore', 'btnForward') |
185 | @@ -528,7 +529,7 @@ | |||
186 | 528 | walk_restore_prefs('frmRestore', backend=backend, dest=dest) | 529 | walk_restore_prefs('frmRestore', backend=backend, dest=dest) |
187 | 529 | ldtp.click('frmRestore', 'btnForward') | 530 | ldtp.click('frmRestore', 'btnForward') |
188 | 530 | 531 | ||
190 | 531 | wait_for_finish('frmRestore', 'lblRestorefromWhen?', 200) | 532 | wait_for_finish('frmRestore', 'lblRestoreFromWhen?', 200) |
191 | 532 | if date: | 533 | if date: |
192 | 533 | ldtp.comboselect('frmRestore', 'cboDate', date) | 534 | ldtp.comboselect('frmRestore', 'cboDate', date) |
193 | 534 | ldtp.click('frmRestore', 'btnForward') | 535 | ldtp.click('frmRestore', 'btnForward') |
Looks good, approved.