summaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index ada6f411..644eea17 100644
--- a/src/package.c
+++ b/src/package.c
@@ -27,6 +27,7 @@
#include <string.h>
#include <libtar.h>
#include <zlib.h>
+#include "pacconf.h"
#include "util.h"
#include "package.h"
@@ -410,7 +411,7 @@ int split_pkgname(char *pkgfile, char *name, char *version)
}
strncpy(tmp, p, 512);
/* trim file extension (if any) */
- if((p = strstr(tmp, ".pkg.tar.gz"))) {
+ if((p = strstr(tmp, PKGEXT))) {
*p = 0;
}