summaryrefslogtreecommitdiff
path: root/community/packagekit/alpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/packagekit/alpm.patch')
-rw-r--r--community/packagekit/alpm.patch22
1 files changed, 12 insertions, 10 deletions
diff --git a/community/packagekit/alpm.patch b/community/packagekit/alpm.patch
index aeba9c347..8b972b291 100644
--- a/community/packagekit/alpm.patch
+++ b/community/packagekit/alpm.patch
@@ -40,7 +40,7 @@ index 5c6b629..a4cd197 100644
alpm_strerror (errno));
}
diff --git a/backends/alpm/pk-backend-config.c b/backends/alpm/pk-backend-config.c
-index c8fd13b..1a82637 100644
+index c8fd13b..03adb47 100644
--- a/backends/alpm/pk-backend-config.c
+++ b/backends/alpm/pk-backend-config.c
@@ -33,35 +33,32 @@
@@ -357,14 +357,14 @@ index c8fd13b..1a82637 100644
+
+ return g_strcmp0 (section->name, name);
+}
-+
+
+- if (alpm_list_find_str (config->repos, repo) == NULL) {
+- config->repos = alpm_list_add (config->repos, g_strdup (repo));
+static PkBackendConfigSection *
+pk_backend_config_enter_section (PkBackendConfig *config, const gchar *name)
+{
+ PkBackendConfigSection *section;
-
-- if (alpm_list_find_str (config->repos, repo) == NULL) {
-- config->repos = alpm_list_add (config->repos, g_strdup (repo));
++
+ g_return_val_if_fail (config != NULL, NULL);
+ g_return_val_if_fail (name != NULL, NULL);
+
@@ -426,8 +426,8 @@ index c8fd13b..1a82637 100644
{
- alpm_siglevel_t *level;
-
- g_return_val_if_fail (config != NULL, FALSE);
- g_return_val_if_fail (section != NULL, FALSE);
+- g_return_val_if_fail (config != NULL, FALSE);
+- g_return_val_if_fail (section != NULL, FALSE);
- g_return_val_if_fail (list != NULL, FALSE);
-
- level = g_hash_table_lookup (config->levels, section);
@@ -439,8 +439,7 @@ index c8fd13b..1a82637 100644
-
- while (TRUE) {
- gboolean package = TRUE, database = TRUE;
-+ g_return_val_if_fail (words != NULL, FALSE);
-
+-
- if (g_str_has_prefix (list, "Package")) {
- database = FALSE;
- list += 7;
@@ -506,7 +505,10 @@ index c8fd13b..1a82637 100644
- ++list;
- }
- }
--
++ g_return_if_fail (config != NULL);
++ g_return_if_fail (section != NULL);
++ g_return_if_fail (words != NULL);
+
- return TRUE;
+ section->siglevels = alpm_list_add_words (section->siglevels, words);
}