From 70ba64ca6b66b224e48581ccadeae4fc62f2b5be Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 27 Oct 2025 17:53:10 +0200 Subject: [PATCH] Change file download message --- src/bpmlib/compilation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bpmlib/compilation.go b/src/bpmlib/compilation.go index fe21fbf..d5dbc36 100644 --- a/src/bpmlib/compilation.go +++ b/src/bpmlib/compilation.go @@ -343,7 +343,7 @@ func CompileSourcePackage(archiveFilename, outputDirectory string, skipChecks, k } func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bool) error { - for i, download := range pkgInfo.Downloads { + for _, download := range pkgInfo.Downloads { // Replace variables replaceVars := func(s string) string { switch s { @@ -387,7 +387,7 @@ func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bo filepath = path.Join(tempDirectory, download.Filepath) } - err := downloadFile("Downloading file "+strconv.Itoa(i+1), downloadUrl, filepath, 0644) + err := downloadFile("Downloading file "+path.Base(filepath), downloadUrl, filepath, 0644) if err != nil { return err }