From e344fab3b12803b3a43aebe0b1a57c49631cc0ff Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 7 Sep 2010 08:24:36 -0500 Subject: 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 --- 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 3696d3cd..32dafb50 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -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 -- cgit v1.2.3-70-g09d2