index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/package.c | 6 |
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); |