summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/server.c3
-rw-r--r--src/pacman/callback.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index 8d9c6f87..f0bdcbcf 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -193,8 +193,7 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
return(-1);
}
- /* use the raw filename for download progress */
- /* TODO maybe strip the normal pkg.tar.gz extension? */
+ /* pass the raw filename for passing to the callback function */
strncpy(pkgname, fn, PKG_NAME_LEN);
_alpm_log(PM_LOG_DEBUG, "using '%s' for download progress\n", pkgname);
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index fac16c5e..0e4ef11a 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -532,8 +532,7 @@ void cb_dl_progress(const char *filename, int xfered, int total)
eta_s -= eta_m * 60;
fname = strdup(filename);
- /* strip extension if it's there
- * NOTE: in the case of package files, only the pkgname is sent now */
+ /* strip package or DB extension for cleaner look */
if((p = strstr(fname, PKGEXT)) || (p = strstr(fname, DBEXT))) {
*p = '\0';
}