socsvn commit: r256023 - soc2013/mattbw/backend/query

From: <mattbw_at_FreeBSD.org>
Date: Fri, 16 Aug 2013 11:32:56 GMT
Author: mattbw
Date: Fri Aug 16 11:32:56 2013
New Revision: 256023
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=256023

Log:
  Add the for-loop to query_depends_emit.
  
  This still doesn't do anything, unfortunately.
  

Modified:
  soc2013/mattbw/backend/query/depends.c

Modified: soc2013/mattbw/backend/query/depends.c
==============================================================================
--- soc2013/mattbw/backend/query/depends.c	Fri Aug 16 11:26:11 2013	(r256022)
+++ soc2013/mattbw/backend/query/depends.c	Fri Aug 16 11:32:56 2013	(r256023)
_at__at_ -30,6 +30,7 _at__at_
 query_depends_emit(PkBackend *backend, struct pkg *pkg, depends_get_ptr get)
 {
 	bool		success;
+	struct pkg_dep *dep;
 
 	assert(backend != NULL);
 	assert(pkg != NULL);
_at__at_ -37,6 +38,11 _at__at_
 
 	success = false;
 
+	dep = NULL;
+	while (get(pkg, &dep) == EPKG_OK) {
+		; /* Do something here */
+	}
+
 	ERR(backend, PK_ERROR_ENUM_NOT_SUPPORTED, "soon");
 
 	return success;
Received on Fri Aug 16 2013 - 11:32:56 UTC