summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-07 08:24:36 -0500
committerDan McGee <dan@archlinux.org>2010-09-07 08:24:36 -0500
commite344fab3b12803b3a43aebe0b1a57c49631cc0ff (patch)
tree1acc520b353f5fa4d3d5f93a9124207cdaa04a2c /src
parentfe788ee4a68d2a8ba3bc3f938172294589c36fc4 (diff)
downloadpacman-e344fab3b12803b3a43aebe0b1a57c49631cc0ff.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c2
1 files changed, 1 insertions, 1 deletions
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