index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-01-30 03:46:33 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-01-30 03:46:33 +0000 |
commit | 1799afc9c144381150e181cee3a03a506b3e1d31 (patch) | |
tree | 5bfad94c39c4766a0b73b87b31924a58dae2d684 /src/pacman/sync.c | |
parent | 358a4a62f325c0f043005cff72d79b813d2a318f (diff) |
-rw-r--r-- | src/pacman/sync.c | 4 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 6b1cb432..9054d5ee 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -159,7 +159,7 @@ static int sync_cleancache(int level) /* TODO Do not remove the currently installed version EITHER */ if(!strcmp(name, n)) { char *ptr = (alpm_pkg_vercmp(version, v) < 0) ? str : s; - if(!alpm_list_is_strin(ptr, clean)) { + if(!alpm_list_find_str(clean, ptr)) { clean = alpm_list_add(clean, strdup(ptr)); } } @@ -645,7 +645,7 @@ int pacman_sync(alpm_list_t *targets) for(j = data; j; j = alpm_list_next(j)) { pmpkg_t *p = alpm_list_getdata(j); const char *pkgname = alpm_pkg_get_name(p); - if(!alpm_list_is_strin(pkgname, list_remove)) { + if(!alpm_list_find_str(list_remove, pkgname)) { list_remove = alpm_list_add(list_remove, strdup(pkgname)); } } |