mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-05 19:08:04 -05:00
Restore trimming of db and pkg extensions
These keep having to change because we are getting really good at changing the downloaded filename. Shorten the match sequences to just .db and .pkg and trim everything after and including these strings. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
fe788ee4a6
commit
e344fab3b1
@ -575,7 +575,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
|
||||
|
||||
fname = strdup(filename);
|
||||
/* strip package or DB extension for cleaner look */
|
||||
if((p = strstr(fname, ".pkg.tar.")) || (p = strstr(fname, ".db.tar."))) {
|
||||
if((p = strstr(fname, ".pkg")) || (p = strstr(fname, ".db"))) {
|
||||
*p = '\0';
|
||||
}
|
||||
/* In order to deal with characters from all locales, we have to worry
|
||||
|
Loading…
Reference in New Issue
Block a user