File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ class Zef::Repository::Ecosystems does Repository {
17
17
18
18
method ! dists {
19
19
# Only update once, and only update automatically if $!auto-update is enabled or no package list exists yet
20
- self . update unless $ ! update-counter ++
21
- || ! $ ! auto-update
22
- || self ! package-list-file . e ;
20
+ self . update if ( $ ! auto- update && ! $ ! update -counter)
21
+ or ! self ! package-list-file . e ;
22
+
23
23
% dist_cache {self . id} := % dist_cache {self . id}
24
24
?? % dist_cache {self . id}
25
25
!! cache gather for self ! slurp-package-list -> $ meta {
@@ -55,6 +55,7 @@ class Zef::Repository::Ecosystems does Repository {
55
55
}
56
56
57
57
method update {
58
+ $ ! update-counter ++ ;
58
59
die " Failed to update $ ! name" unless $ ! mirrors . first : -> $ uri {
59
60
my $ save-as = $ ! cache . IO . child ($ uri . IO . basename );
60
61
my $ path = try { $ ! fetcher . fetch($ uri , $ save-as ) } || next ;
You can’t perform that action at this time.
0 commit comments