Skip to content

Commit 3761d0b

Browse files
committed
Fixed variable assignment ("is_excluded")
1 parent e65918a commit 3761d0b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = refind_btrfs
3-
version = 0.5.0
3+
version = 0.5.1
44
description = Generate rEFInd manual boot stanzas from Btrfs snapshots
55
long_description = file: README.md
66
keywords = rEFInd, btrfs

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setuptools.setup(
3030
name="refind-btrfs",
31-
version="0.5.0",
31+
version="0.5.1",
3232
author="Luka Žaja",
3333
author_email="luka.zaja@protonmail.com",
3434
description="Generate rEFInd manual boot stanzas from Btrfs snapshots",

src/refind_btrfs/state_management/model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ def combine_boot_stanzas_with_snapshots(self) -> None:
238238
boot_stanza_preparation_results: list[BootStanzaWithSnapshots] = []
239239

240240
for boot_stanza in usable_boot_stanzas:
241+
is_excluded = any(
242+
boot_stanza.is_matched_with(loader_filename)
243+
for loader_filename in boot_stanza_generation.source_exclusion
244+
)
241245
matched_snapshots: list[Subvolume] = []
242246
unmatched_snapshots: list[Subvolume] = []
243247

@@ -246,10 +250,6 @@ def combine_boot_stanzas_with_snapshots(self) -> None:
246250
snapshot.with_boot_files_check_result(boot_stanza)
247251
for snapshot in actual_bootable_snapshots
248252
)
249-
is_excluded = any(
250-
boot_stanza.is_matched_with(loader_filename)
251-
for loader_filename in boot_stanza_generation.source_exclusion
252-
)
253253

254254
for snapshot in checked_bootable_snapshots:
255255
append_func = (

0 commit comments

Comments
 (0)