Skip to content

Commit

Permalink
[fix][fn] Use unified PackageManagement service to download packages (a…
Browse files Browse the repository at this point in the history
…pache#21955)

(cherry picked from commit d3b7ca5)
  • Loading branch information
jiangpengcheng authored and gaoran10 committed Mar 4, 2024
1 parent e611e78 commit 7b4f69d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,8 @@ protected File getPackageFile(String functionPkgUrl, String existingPackagePath,
+ "when getting %s package from %s", e.getMessage(),
ComponentTypeUtils.toString(componentType), functionPkgUrl));
}
} else if (Utils.hasPackageTypePrefix(existingPackagePath)) {
componentPackageFile = getPackageFile(existingPackagePath);
} else if (uploadedInputStream != null) {
componentPackageFile = WorkerUtils.dumpToTmpFile(uploadedInputStream);
} else if (!existingPackagePath.startsWith(Utils.BUILTIN)) {
Expand Down

0 comments on commit 7b4f69d

Please sign in to comment.