mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 13:28:12 -05:00
Update comments dealing with pkgext/dbext stripping
pacman/callback.c already did the work I set out to do with this commit, so update the comments accordingly in the frontend and backend. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
16cb8e6e61
commit
d2edcb58e2
@ -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);
|
||||
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user