socsvn commit: r254994 - in soc2013/mattbw/backend: . actions
mattbw at FreeBSD.org
mattbw at FreeBSD.org
Sun Jul 21 10:49:38 UTC 2013
Author: mattbw
Date: Sun Jul 21 10:49:37 2013
New Revision: 254994
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254994
Log:
add stub for get_update_detail
Added:
soc2013/mattbw/backend/actions/get_update_detail.c
Modified:
soc2013/mattbw/backend/Makefile
soc2013/mattbw/backend/actions.h
soc2013/mattbw/backend/pk-backend-pkgng.c
Modified: soc2013/mattbw/backend/Makefile
==============================================================================
--- soc2013/mattbw/backend/Makefile Sun Jul 21 07:24:25 2013 (r254993)
+++ soc2013/mattbw/backend/Makefile Sun Jul 21 10:49:37 2013 (r254994)
@@ -16,6 +16,7 @@
actions/get_details.c \
actions/get_files.c \
actions/get_repo_list.c \
+ actions/get_update_detail.c \
actions/install_files.c \
actions/install_packages.c \
actions/refresh_cache.c \
Modified: soc2013/mattbw/backend/actions.h
==============================================================================
--- soc2013/mattbw/backend/actions.h Sun Jul 21 07:24:25 2013 (r254993)
+++ soc2013/mattbw/backend/actions.h Sun Jul 21 10:49:37 2013 (r254994)
@@ -31,6 +31,7 @@
gboolean get_details_thread(PkBackend *backend);
gboolean get_files_thread(PkBackend *backend);
gboolean get_repo_list_thread(PkBackend *backend);
+gboolean get_update_detail_thread(PkBackend *backend);
gboolean install_files_thread(PkBackend *backend);
gboolean install_packages_thread(PkBackend *backend);
gboolean refresh_cache_thread(PkBackend *backend);
Added: soc2013/mattbw/backend/actions/get_update_detail.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2013/mattbw/backend/actions/get_update_detail.c Sun Jul 21 10:49:37 2013 (r254994)
@@ -0,0 +1,33 @@
+/*-
+ * 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> /* gboolean */
+
+#include "../actions.h" /* Prototype */
+#include "../utils.h" /* ERR */
+
+gboolean
+get_update_detail_thread(PkBackend *backend)
+{
+
+ ERR(backend, PK_ERROR_ENUM_NOT_SUPPORTED, "todo");
+ (void)pk_backend_finished(backend);
+ return FALSE;
+}
Modified: soc2013/mattbw/backend/pk-backend-pkgng.c
==============================================================================
--- soc2013/mattbw/backend/pk-backend-pkgng.c Sun Jul 21 07:24:25 2013 (r254993)
+++ soc2013/mattbw/backend/pk-backend-pkgng.c Sun Jul 21 10:49:37 2013 (r254994)
@@ -146,6 +146,14 @@
}
void
+pk_backend_get_update_detail(PkBackend *backend, gchar **package_ids)
+{
+
+ INTENTIONALLY_IGNORE(package_ids); /* retrieved from backend */
+ THREAD(backend, get_update_detail_thread);
+}
+
+void
pk_backend_install_files(PkBackend *backend, gboolean only_trusted,
gchar **full_paths)
{
More information about the svn-soc-all
mailing list