Commit d37c5c57 authored by Michael Terry's avatar Michael Terry

Tell user how much free space is needed when backup location is tiny.

https://bugs.launchpad.net/deja-dup/+bug/1103567
parent 79a3cb0d
Pipeline #50128 failed with stage
in 10 minutes and 52 seconds
......@@ -524,6 +524,7 @@ internal class DuplicityJob : DejaDup.ToolJob
return;
}
var formatted_progress_total = format_size(progress_total);
var free = yield backend.get_space();
var total = yield backend.get_space(false);
// Sanity check total here, plus this can actually happen if an overflow
......@@ -532,7 +533,8 @@ internal class DuplicityJob : DejaDup.ToolJob
total = free;
if (total < progress_total) {
// Tiny backup location. Suggest they get a larger one.
show_error(_("Backup location is too small. Try using one with more space."));
var msg = _("Backup location is too small. Try using one with at least %s.");
show_error(msg.printf(formatted_progress_total));
done(false, false, null);
return;
}
......@@ -555,7 +557,8 @@ internal class DuplicityJob : DejaDup.ToolJob
}
}
else {
show_error(_("Backup location does not have enough free space."));
var msg = _("Backup location does not have enough free space. Try using one with at least %s.");
show_error(msg.printf(formatted_progress_total));
done(false, false, null);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment