socsvn commit: r254266 - soc2013/mattbw/backend/actions

mattbw at FreeBSD.org mattbw at FreeBSD.org
Sat Jul 6 23:59:52 UTC 2013


Author: mattbw
Date: Sat Jul  6 23:59:51 2013
New Revision: 254266
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254266

Log:
  forgot (unusable) implementation of installfiles

Added:
  soc2013/mattbw/backend/actions/install-files.c

Added: soc2013/mattbw/backend/actions/install-files.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2013/mattbw/backend/actions/install-files.c	Sat Jul  6 23:59:51 2013	(r254266)
@@ -0,0 +1,49 @@
+/*-
+ * Copyright (C) 2013 Matt Windsor <mattbw at FreeBSD.org>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <glib.h>
+#include "../pk-backend.h"
+#include "pkg.h"
+
+#include "../db.h"		/* open_remote_db */
+#include "../hash_traverse.h"	/* HASH_FOR */
+#include "../pkgutils.h"	/* pkgutils_... */
+#include "../query_match.h"	/* query_match_... */
+#include "../utils.h"		/* INTENTIONALLY_IGNORE */
+
+#include "actions.h"		/* install_files_thread prototype */
+
+/*
+ * The thread that performs an InstallFiles operation. Should be invoked
+ * by the pk_backend_install_files hook.
+ */
+gboolean
+install_files_thread(PkBackend *backend)
+{
+	guint		len;
+	gchar         **package_ids;
+	
+	package_ids = pk_backend_get_strv(backend, "package_ids");
+	len = g_strv_length(package_ids);
+
+	pk_backend_finished(backend);
+
+	return FALSE;
+}


More information about the svn-soc-all mailing list