Add progress bars

This commit is contained in:
2025-10-26 20:06:55 +02:00
parent f0ea57d500
commit ed172f2805
10 changed files with 151 additions and 34 deletions
+2 -2
View File
@@ -343,7 +343,7 @@ func CompileSourcePackage(archiveFilename, outputDirectory string, skipChecks, k
}
func downloadPackageFiles(pkgInfo *PackageInfo, tempDirectory string, verbose bool) error {
for _, download := range pkgInfo.Downloads {
for i, 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(downloadUrl, filepath, 0644)
err := downloadFile("Downloading file "+strconv.Itoa(i+1), downloadUrl, filepath, 0644)
if err != nil {
return err
}