FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 06-07-2011, 09:36 PM
Dan McGee
 
Default Require handle for alpm_find_grp_pkgs()

Signed-off-by: Dan McGee <dan@archlinux.org>
---
lib/libalpm/alpm.h | 3 ++-
lib/libalpm/sync.c | 5 +++--
src/pacman/sync.c | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 821f2fa..c493245 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -634,7 +634,8 @@ off_t alpm_delta_get_size(pmdelta_t *delta);
*/
const char *alpm_grp_get_name(const pmgrp_t *grp);
alpm_list_t *alpm_grp_get_pkgs(const pmgrp_t *grp);
-alpm_list_t *alpm_find_grp_pkgs(alpm_list_t *dbs, const char *name);
+alpm_list_t *alpm_find_grp_pkgs(pmhandle_t *handle, alpm_list_t *dbs,
+ const char *name);

/*
* Sync
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index b4ac077..b525efa 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -205,11 +205,12 @@ int SYMEXPORT alpm_sync_sysupgrade(pmhandle_t *handle, int enable_downgrade)
/** Find group members across a list of databases.
* If a member exists in several databases, only the first database is used.
* IgnorePkg is also handled.
+ * @param handle the context handle
* @param dbs the list of pmdb_t *
- * @pram name the name of the group
+ * @param name the name of the group
* @return the list of pmpkg_t * (caller is responsible for alpm_list_free)
*/
-alpm_list_t SYMEXPORT *alpm_find_grp_pkgs(alpm_list_t *dbs,
+alpm_list_t SYMEXPORT *alpm_find_grp_pkgs(pmhandle_t *handle, alpm_list_t *dbs,
const char *name)
{
alpm_list_t *i, *j, *pkgs = NULL, *ignorelist = NULL;
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index cf350d7..87b321f 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -641,7 +641,7 @@ static int process_group(alpm_list_t *dbs, char *group)
{
int ret = 0;
alpm_list_t *i;
- alpm_list_t *pkgs = alpm_find_grp_pkgs(dbs, group);
+ alpm_list_t *pkgs = alpm_find_grp_pkgs(config->handle, dbs, group);
int count = alpm_list_count(pkgs);

if(!count) {
--
1.7.5.2
 

Thread Tools




All times are GMT. The time now is 10:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org