diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-22 04:42:59 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-22 04:42:59 +0000 |
commit | 871e123cf3fafe5aff734e2c5cf1ce89a203f719 (patch) | |
tree | 540028fd906e924bea504d4ff79d22eb43e5a43e /lib/libalpm/package.c | |
parent | 3595201f5f3c1274786844c541ef82edba6984f8 (diff) | |
download | pacman-871e123cf3fafe5aff734e2c5cf1ce89a203f719.tar.xz |
* Cleaned up some debug output
* Fixed a segfault in the conflict checking code
* Added an automatic failure in the case of -A/-U for a replacement of an
existing package. This requires a large amount of work and is postponed for
now. Example:
If ncmpc is installed, pacman -U /path/to/ncmpc-svn.pkg.tar.gz will fail
with and appropriate error message
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index d5738703..09161dba 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -467,8 +467,8 @@ pmpkg_t *_alpm_pkg_isin(char *needle, alpm_list_t *haystack) for(lp = haystack; lp; lp = lp->next) { pmpkg_t *info = lp->data; - if(info && !strcmp(info->name, needle)) { - return(lp->data); + if(info && strcmp(info->name, needle) == 0) { + return(info); } } return(NULL); |