index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:38:48 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:38:48 +0000 |
commit | 8fbdd03cce3c04a8208df30f435bc3e91a84ade3 (patch) | |
tree | c7ca34f17eff52f9e85d8f1b1bd3be2ecb292753 /lib/libalpm/cache.c | |
parent | 52376150fa267f4f69af75cb9ff4a720430a5083 (diff) |
-rw-r--r-- | lib/libalpm/cache.c | 6 |
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c index 57992d87..8e043096 100644 --- a/lib/libalpm/cache.c +++ b/lib/libalpm/cache.c @@ -187,7 +187,7 @@ int _alpm_db_remove_pkgfromcache(pmdb_t *db, pmpkg_t *pkg) return(0); } -pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, char *target) +pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, const char *target) { ALPM_LOG_FUNC; @@ -201,7 +201,7 @@ pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, char *target) return(NULL); } - return(_alpm_pkg_isin(target, pkgcache)); + return(_alpm_pkg_find(target, pkgcache)); } /* Returns a new group cache from db. @@ -286,7 +286,7 @@ alpm_list_t *_alpm_db_get_grpcache(pmdb_t *db) return(db->grpcache); } -pmgrp_t *_alpm_db_get_grpfromcache(pmdb_t *db, char *target) +pmgrp_t *_alpm_db_get_grpfromcache(pmdb_t *db, const char *target) { alpm_list_t *i; |