mirror of https://github.com/digint/btrbk
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
parent
2c9f1389a0
commit
8570ee585d
4
btrbk
4
btrbk
|
@ -6748,7 +6748,6 @@ MAIN:
|
|||
}
|
||||
}
|
||||
|
||||
unless(IS_ABORTED($svol, "skip_")) {
|
||||
if(IS_ABORTED($sroot, "abort_")) {
|
||||
# repeat volume errors in subvolume context
|
||||
push @subvol_out, "!!! Volume \"$sroot->{PRINT}\" aborted: " . ABORTED_TEXT($sroot);
|
||||
|
@ -6759,10 +6758,9 @@ MAIN:
|
|||
}
|
||||
|
||||
# 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>";
|
||||
}
|
||||
}
|
||||
|
||||
if(@subvol_out) {
|
||||
push @out, "$svol->{PRINT}", @subvol_out, "";
|
||||
|
|
Loading…
Reference in New Issue