[packagekit] [PATCH] pk-backend-alpm.c

BaSh bash.lnx at gmail.com
Mon Apr 21 16:02:27 PDT 2008


Hi ML,
I'm an ArchLinux Trusted User, I'd like to improve alpm backend.
First of all it didn't compile, so I made this patch for fixing it.

Regards,
Andrea

--- src/packagekit/backends/alpm/pk-backend-alpm.c	2008-04-21
00:38:37.000000000 +0200
+++ src/packagekit-build/backends/alpm/pk-backend-alpm.c	2008-04-21
01:27:06.000000000 +0200
@@ -657,8 +657,8 @@
 	alpm_list_t *localresult = NULL;
 	alpm_list_t *dbs = NULL;

-	installed = pk_enums_contain (filters, PK_FILTER_ENUM_INSTALLED);
-	ninstalled = pk_enums_contain (filters, PK_FILTER_ENUM_NOT_INSTALLED);
+	gboolean installed = pk_enums_contain (filters, PK_FILTER_ENUM_INSTALLED);
+	gboolean ninstalled = pk_enums_contain (filters,
PK_FILTER_ENUM_NOT_INSTALLED);

 	pk_debug ("alpm: searching for \"%s\" - searching in installed: %i,
~installed: %i",
 		  search, installed, ninstalled);
@@ -775,6 +775,7 @@
 	"Andreas Obergrusberger <tradiaz at yahoo.de>",	/* author */
 	backend_initialize,				/* initialize */
 	backend_destroy,				/* destroy */
+	NULL,						/* get_groups */
 	backend_get_filters,				/* get_filters */
 	NULL,						/* cancel */
  	NULL,						/* get_depends */

-- 
Andrea `BaSh` Scarpino
Arch Linux Trusted User
Linux User: #430842


More information about the PackageKit mailing list