File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/Symfony/Component/AssetMapper/ImportMap Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -120,18 +120,20 @@ public function downloadMissingPackages(): array
120
120
$ packagesToDownload = [];
121
121
122
122
foreach ($ entries as $ entry ) {
123
- if ($ entry ->isDownloaded && !$ this ->assetMapper ->getAsset ($ entry ->path )) {
124
- $ parts = self ::parsePackageName ($ entry ->url );
125
-
126
- $ packagesToDownload [] = new PackageRequireOptions (
127
- $ parts ['package ' ],
128
- $ parts ['version ' ] ?? throw new RuntimeException (sprintf ('Cannot get a version for the "%s" package. ' , $ parts ['package ' ])),
129
- true ,
130
- $ entry ->preload ,
131
- $ parts ['alias ' ] ?? $ parts ['package ' ],
132
- isset ($ parts ['registry ' ]) && $ parts ['registry ' ] ? $ parts ['registry ' ] : null ,
133
- );
123
+ if (!$ entry ->isDownloaded || $ this ->assetMapper ->getAsset ($ entry ->path )) {
124
+ continue ;
134
125
}
126
+
127
+ $ parts = self ::parsePackageName ($ entry ->url );
128
+
129
+ $ packagesToDownload [] = new PackageRequireOptions (
130
+ $ parts ['package ' ],
131
+ $ parts ['version ' ] ?? throw new RuntimeException (sprintf ('Cannot get a version for the "%s" package. ' , $ parts ['package ' ])),
132
+ true ,
133
+ $ entry ->preload ,
134
+ $ parts ['alias ' ] ?? $ parts ['package ' ],
135
+ isset ($ parts ['registry ' ]) && $ parts ['registry ' ] ? $ parts ['registry ' ] : null ,
136
+ );
135
137
}
136
138
137
139
return $ this ->require ($ packagesToDownload );
You can’t perform that action at this time.
0 commit comments