From ad4efa539de1e8e9e51baee82efeafde9fb24380 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 18 Mar 2010 21:46:03 -0500 Subject: Strip extension off all package compression types Since we were searching for '.pkg.tar.gz' before, we now have started to show extensions during the download when we have a '.pkg.tar.xz' package. Just look for '.pkg.tar.' (or '.db.tar.') instead and suppress anything found from that point on. Signed-off-by: Dan McGee --- src/pacman/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f572dc87..f5bf17d1 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -570,7 +570,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, PKGEXT)) || (p = strstr(fname, DBEXT))) { + if((p = strstr(fname, ".pkg.tar.")) || (p = strstr(fname, ".db.tar."))) { *p = '\0'; } /* In order to deal with characters from all locales, we have to worry -- cgit v1.2.3-70-g09d2