summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-14 17:26:19 +0000
committerAaron Griffin <aaron@archlinux.org>2006-11-14 17:26:19 +0000
commit7d6161ccc33ce06566585fc56adf8e0ce2876658 (patch)
tree2154dac7833efafd1cce982fcb952f840a6e9ac9 /lib/libalpm/package.c
parenteb514bee967d396410e0647f5cd2a897cc619d0f (diff)
downloadpacman-7d6161ccc33ce06566585fc56adf8e0ce2876658.tar.xz
* has_archname changes
* makepkg attempt at multiple file integrity checks * honor "force" option on -S packages (not just -Su)
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 2686c00c..85d76151 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -459,6 +459,12 @@ int _alpm_pkg_splitname(char *target, char *name, char *version, int witharch)
if((p = _alpm_pkgname_has_arch(tmp))) {
*p = '\0';
}
+ if(witharch) {
+ /* trim architecture */
+ if((p = _alpm_pkgname_has_arch(tmp))) {
+ *p = 0;
+ }
+ }
p = tmp + strlen(tmp);