btrbk: fix backup summary: dont display no_action if volume is skipped by --exclude or noauto

The backup summary does not print "<no_action>" if a subvolume is
skipped by --exclude or noauto. Alas, skipped volumes results in
no_action still being printed (see #291). Adding an additional
IS_ABORTED($sroot, "skip_") check fixes this issue.
pull/293/head
Axel Burri 2019-09-07 13:44:25 +02:00
parent 2c9f1389a0
commit 8570ee585d
1 changed files with 11 additions and 13 deletions

4
btrbk
View File

@ -6748,7 +6748,6 @@ MAIN:
} }
} }
unless(IS_ABORTED($svol, "skip_")) {
if(IS_ABORTED($sroot, "abort_")) { if(IS_ABORTED($sroot, "abort_")) {
# repeat volume errors in subvolume context # repeat volume errors in subvolume context
push @subvol_out, "!!! Volume \"$sroot->{PRINT}\" aborted: " . ABORTED_TEXT($sroot); push @subvol_out, "!!! Volume \"$sroot->{PRINT}\" aborted: " . ABORTED_TEXT($sroot);
@ -6759,10 +6758,9 @@ MAIN:
} }
# print "<no_action>" for subvolume, unless aborted by "skip_" # print "<no_action>" for subvolume, unless aborted by "skip_"
unless(@subvol_out) { unless(scalar(@subvol_out) || IS_ABORTED($sroot, "skip_") || IS_ABORTED($svol, "skip_")) {
@subvol_out = "<no_action>"; @subvol_out = "<no_action>";
} }
}
if(@subvol_out) { if(@subvol_out) {
push @out, "$svol->{PRINT}", @subvol_out, ""; push @out, "$svol->{PRINT}", @subvol_out, "";