From d28376d3d8ad7c1567eeabca8cb5ad123de3a1ad Mon Sep 17 00:00:00 2001 From: Bartlomiej Zimon Date: Thu, 3 Jan 2013 23:18:02 +0100 Subject: [PATCH 1/1] - rel 6: add upstream patches - fix LP#1077603 - poldek make indexes crash for subpackage without Group - fix LP#966972: adding repo to group from repo config - Control rpm's _check_dirname_deps via "auto directory dependencies" config option - homepage: fix repository address Signed-off-by: Bartlomiej Zimon --- poldek-git.patch | 322 +++++++++++++++++++++++++++++++++++++++++++++++ poldek.spec | 2 +- 2 files changed, 323 insertions(+), 1 deletion(-) diff --git a/poldek-git.patch b/poldek-git.patch index 81d7b7a..a674183 100644 --- a/poldek-git.patch +++ b/poldek-git.patch @@ -165,3 +165,325 @@ index 9913168..a20c305 100644 EXPORT struct pkgdir *pkgdb_to_pkgdir(struct pm_ctx *ctx, const char *rootdir, const char *path, unsigned pkgdir_ldflags, const char *key, ...); +commit a6f68bc7fe9305d4988e69c1d3166b1a4585b8f7 +Author: Bartlomiej Zimon +Date: Thu Jan 3 22:44:11 2013 +0100 + + - fix LP#1077603 - poldek make indexes crash for subpackage without Group + https://bugs.launchpad.net/poldek/+bug/1077603 + + Signed-off-by: Bartlomiej Zimon + +diff --git a/pkgroup.c b/pkgroup.c +index cd8bf4d..9fdeaf9 100644 +--- a/pkgroup.c ++++ b/pkgroup.c +@@ -470,17 +470,21 @@ int pkgroup_idx_update_rpmhdr(struct pkgroup_idx *idx, void *rpmhdr) + + DBGF("ngroups %d, %d\n", ngroups, n_array_size(langs)); + for (i=0; i < ngroups; i++) { +- const char *lang = n_array_nth(langs, i); +- DBGF(" gr[%d of %d] %s\n", i, ngroups, groups[i]); +- +- if (n_str_eq(lang, "C")) { +- if ((gr = n_hash_get(idx->ht, groups[i])) == NULL) { +- gr = pkgroup_new(n_array_size(idx->arr) + 1, groups[i]); +- n_array_push(idx->arr, gr); +- n_hash_insert(idx->ht, gr->name, gr); +- } +- break; ++ const char *lang = n_array_nth(langs, i); ++ ++ const char *grp = groups; ++ if (ngroups > 1) grp = groups[i]; ++ ++ DBGF(" gr[%d of %d] %s\n", i, ngroups, grp); ++ ++ if (n_str_eq(lang, "C")) { ++ if ((gr = n_hash_get(idx->ht, grp)) == NULL) { ++ gr = pkgroup_new(n_array_size(idx->arr) + 1, grp); ++ n_array_push(idx->arr, gr); ++ n_hash_insert(idx->ht, gr->name, gr); + } ++ break; ++ } + } + + if (gr != NULL) { +commit 810280a1e3be737bf074b536c414eadbb0f38596 +Author: Bartlomiej Zimon +Date: Thu Jan 3 22:48:28 2013 +0100 + + - fix LP#966972: adding repo to group from repo config + https://bugs.launchpad.net/poldek/+bug/966972 + + Signed-off-by: Bartlomiej Zimon + +diff --git a/doc/poldek.conf.xml b/doc/poldek.conf.xml +index aae8091..7ecf678 100644 +--- a/doc/poldek.conf.xml ++++ b/doc/poldek.conf.xml +@@ -525,6 +525,12 @@ Every repository is configured in its own [ source ] section. + + + ++ ++ +