/** * pk_backend_get_files: */ void pk_backend_get_files (PkBackend *backend, PkBackendJob *job, gchar **package_ids) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "get-files", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_simulate_update_packages: */ void pk_backend_simulate_update_packages (PkBackend *backend, gchar **package_ids) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "simulate-update-packages", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_get_update_detail: */ void pk_backend_get_update_detail (PkBackend *backend, gchar **package_ids) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "get-update-detail", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_simulate_remove_packages: */ void pk_backend_simulate_remove_packages (PkBackend *backend, gchar **package_ids, gboolean autoremove) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "simulate-remove-packages", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_get_update_detail: */ void pk_backend_get_update_detail (PkBackend *backend, PkBackendJob *job, gchar **package_ids) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "get-update-detail", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * backend_remove_packages: */ static void backend_remove_packages (PkBackend *backend, gchar **package_ids, gboolean allow_deps, gboolean autoremove) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "remove-packages", pk_backend_bool_to_string (allow_deps), pk_backend_bool_to_string (autoremove), package_ids_temp, NULL); g_free (package_ids_temp); }
/** * backend_get_details: */ static void backend_get_details (PkBackend *backend, gchar **package_ids) { gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "get-details", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_download_packages: */ void pk_backend_download_packages (PkBackend *backend, gchar **package_ids, const gchar *directory) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "download-packages", directory, package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_get_details_local: */ void pk_backend_get_details_local (PkBackend *backend, PkBackendJob *job, gchar **filenames) { g_autofree gchar *tmp = NULL; tmp = pk_package_ids_to_string (filenames); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "get-details-local", tmp, NULL); }
/** * backend_simulate_remove_packages: */ static void backend_simulate_remove_packages (PkBackend *backend, gchar **package_ids, gboolean autoremove) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "simulate-remove-packages", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_download_packages: */ void pk_backend_download_packages (PkBackend *backend, PkBackendJob *job, gchar **package_ids, const gchar *directory) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "download-packages", directory, package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_update_packages: */ void pk_backend_update_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "update-packages", pk_backend_bool_to_string (only_trusted), package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_remove_packages: */ void pk_backend_remove_packages (PkBackend *backend, PkBackendJob *job, gchar **package_ids, gboolean allow_deps, gboolean autoremove) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "remove-packages", pk_backend_bool_to_string (allow_deps), pk_backend_bool_to_string (autoremove), package_ids_temp, NULL); g_free (package_ids_temp); }
/** * backend_simulate_update_packages: */ void pk_backend_simulate_update_packages (PkBackend *backend, gchar **package_ids) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "simulate-update-packages", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * backend_update_packages: */ static void backend_update_packages (PkBackend *backend, gboolean only_trusted, gchar **package_ids) { gchar *package_ids_temp; /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "update-packages", package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_depends_on: */ void pk_backend_depends_on (PkBackend *backend, PkBackendJob *job, PkBitfield filters, gchar **package_ids, gboolean recursive) { gchar *filters_text; gchar *package_ids_temp; package_ids_temp = pk_package_ids_to_string (package_ids); filters_text = pk_filter_bitfield_to_string (filters); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "depends-on", filters_text, package_ids_temp, pk_backend_bool_to_string (recursive), NULL); g_free (filters_text); g_free (package_ids_temp); }
/** * pk_backend_resolve: */ void pk_backend_resolve (PkBackend *backend, PkBitfield filters, gchar **package_ids) { gchar *filters_text; gchar *package_ids_temp; filters_text = pk_filter_bitfield_to_string (filters); package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "resolve", filters_text, package_ids_temp, NULL); g_free (filters_text); g_free (package_ids_temp); }
/** * pk_backend_get_requires: */ void pk_backend_get_requires (PkBackend *backend, PkBitfield filters, gchar **package_ids, gboolean recursive) { gchar *package_ids_temp; gchar *filters_text; package_ids_temp = pk_package_ids_to_string (package_ids); filters_text = pk_filter_bitfield_to_string (filters); pk_backend_spawn_helper (spawn, BACKEND_FILE, "get-requires", filters_text, package_ids_temp, pk_backend_bool_to_string (recursive), NULL); g_free (filters_text); g_free (package_ids_temp); }
/** * pk_backend_resolve: */ void pk_backend_resolve (PkBackend *backend, PkBackendJob *job, PkBitfield filters, gchar **packages) { gchar *filters_text; gchar *package_ids_temp; filters_text = pk_filter_bitfield_to_string (filters); package_ids_temp = pk_package_ids_to_string (packages); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "resolve", filters_text, package_ids_temp, NULL); g_free (filters_text); g_free (package_ids_temp); }
/** * pk_backend_required_by: */ void pk_backend_required_by (PkBackend *backend, PkBackendJob *job, PkBitfield filters, gchar **package_ids, gboolean recursive) { gchar *package_ids_temp; gchar *filters_text; package_ids_temp = pk_package_ids_to_string (package_ids); filters_text = pk_filter_bitfield_to_string (filters); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "required-by", filters_text, package_ids_temp, pk_backend_bool_to_string (recursive), NULL); g_free (filters_text); g_free (package_ids_temp); }
/** * pk_backend_remove_packages: */ void pk_backend_remove_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids, gboolean allow_deps, gboolean autoremove) { gchar *package_ids_temp; gchar *transaction_flags_temp; package_ids_temp = pk_package_ids_to_string (package_ids); transaction_flags_temp = pk_transaction_flag_bitfield_to_string (transaction_flags); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "remove-packages", transaction_flags_temp, package_ids_temp, pk_backend_bool_to_string (allow_deps), pk_backend_bool_to_string (autoremove), NULL); g_free (transaction_flags_temp); g_free (package_ids_temp); }
/** * pk_backend_update_packages: */ void pk_backend_update_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids) { gchar *package_ids_temp; gchar *transaction_flags_temp; package_ids_temp = pk_package_ids_to_string (package_ids); transaction_flags_temp = pk_transaction_flag_bitfield_to_string (transaction_flags); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "update-packages", transaction_flags_temp, package_ids_temp, NULL); g_free (transaction_flags_temp); g_free (package_ids_temp); }
/** * pk_backend_install_packages: */ void pk_backend_install_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids) { gchar *package_ids_temp; gchar *transaction_flags_temp; package_ids_temp = pk_package_ids_to_string (package_ids); transaction_flags_temp = pk_transaction_flag_bitfield_to_string (transaction_flags); pk_backend_spawn_helper (priv->spawn, job, "yumBackend.py", "install-packages", transaction_flags_temp, package_ids_temp, NULL); g_free (package_ids_temp); g_free (transaction_flags_temp); }
/** * pk_backend_update_packages: */ void pk_backend_update_packages (PkBackend *backend, gboolean only_trusted, gchar **package_ids) { gchar *package_ids_temp; /* check network state */ if (!pk_backend_is_online (backend)) { pk_backend_error_code (backend, PK_ERROR_ENUM_NO_NETWORK, "Cannot install when offline"); pk_backend_finished (backend); return; } /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); pk_backend_spawn_helper (spawn, BACKEND_FILE, "update-packages", pk_backend_bool_to_string (only_trusted), package_ids_temp, NULL); g_free (package_ids_temp); }
/** * pk_backend_install_packages: */ void pk_backend_install_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids) { gchar *package_ids_temp; gchar *transaction_flags_temp; /* * TODO: portage manage to install when offline * but maybe packagekit implementation will make this forbidden * (because of download funcion dir) * If needed, add something that will check for network _NOW_ (see yum) */ /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); transaction_flags_temp = pk_transaction_flag_bitfield_to_string (transaction_flags); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "install-packages", transaction_flags_temp, package_ids_temp, NULL); g_free(transaction_flags_temp); g_free (package_ids_temp); }
/** * pk_backend_update_packages: */ void pk_backend_update_packages (PkBackend *backend, PkBackendJob *job, PkBitfield transaction_flags, gchar **package_ids) { gchar *package_ids_temp; gchar *transaction_flags_temp; /* check network state */ if (!pk_backend_is_online (backend)) { pk_backend_job_error_code (job, PK_ERROR_ENUM_NO_NETWORK, "Cannot install when offline"); pk_backend_job_finished (job); return; } /* send the complete list as stdin */ package_ids_temp = pk_package_ids_to_string (package_ids); transaction_flags_temp = pk_transaction_flag_bitfield_to_string (transaction_flags); pk_backend_spawn_helper (spawn, job, BACKEND_FILE, "update-packages", transaction_flags_temp, package_ids_temp, NULL); g_free (package_ids_temp); g_free (transaction_flags_temp); }