Change file download message

This commit is contained in:
2025-10-27 17:53:10 +02:00
parent ed172f2805
commit 70ba64ca6b
+2 -2
View File
@@ -343,7 +343,7 @@ func CompileSourcePackage(archiveFilename, outputDirectory string, skipChecks, k
} }
func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bool) error { func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bool) error {
for i, download := range pkgInfo.Downloads { for _, download := range pkgInfo.Downloads {
// Replace variables // Replace variables
replaceVars := func(s string) string { replaceVars := func(s string) string {
switch s { switch s {
@@ -387,7 +387,7 @@ func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bo
filepath = path.Join(tempDirectory, download.Filepath) 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 { if err != nil {
return err return err
} }