Skip to content

Commit 044e3fa

Browse files
authored
Fix forcing auto-update for boolean true value (#607)
This brings the logic inline with what the comments on $!auto-update say.
1 parent fb9d6a2 commit 044e3fa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Zef/Repository/Ecosystems.rakumod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ class Zef::Repository::Ecosystems does PackageRepository {
218218
#| Check if our package list should be updated
219219
method !is-package-list-stale(--> Bool:D) {
220220
return so !self!package-list-path.e
221+
|| ($!auto-update === Bool::True)
221222
|| ($!auto-update && self!package-list-path.modified < now.DateTime.earlier(:hours($!auto-update)).Instant);
222223
}
223224

0 commit comments

Comments
 (0)