From owner-svn-soc-all@FreeBSD.ORG Sat Jul 6 23:59:51 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EE40120D for ; Sat, 6 Jul 2013 23:59:51 +0000 (UTC) (envelope-from mattbw@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) by mx1.freebsd.org (Postfix) with ESMTP id C6E211A03 for ; Sat, 6 Jul 2013 23:59:51 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r66Nxp5k039708 for ; Sat, 6 Jul 2013 23:59:51 GMT (envelope-from mattbw@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r66NxpJ2039706 for svn-soc-all@FreeBSD.org; Sat, 6 Jul 2013 23:59:51 GMT (envelope-from mattbw@FreeBSD.org) Date: Sat, 6 Jul 2013 23:59:51 GMT Message-Id: <201307062359.r66NxpJ2039706@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to mattbw@FreeBSD.org using -f From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254266 - soc2013/mattbw/backend/actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 23:59:52 -0000 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 + * + * 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 +#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; +}