projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4507d
)
Unbreak %_install_langs handling (rhbz#489235)
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 9 Mar 2009 12:57:46 +0000
(14:57 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 9 Mar 2009 12:57:46 +0000
(14:57 +0200)
- using rpmfiFLangs() in skipFiles() broke the %_install_langs logic,
causing all files to be skipped if install langs, eek
lib/transaction.c
patch
|
blob
|
history
diff --git
a/lib/transaction.c
b/lib/transaction.c
index
2940634
..
25a147a
100644
(file)
--- a/
lib/transaction.c
+++ b/
lib/transaction.c
@@
-488,7
+488,8
@@
static void skipFiles(const rpmts ts, rpmte p)
/*
* Skip i18n language specific files.
*/
- if (ts->installLangs != NULL && (flangs = rpmfiFLangs(fi)) != NULL) {
+ flangs = (ts->installLangs != NULL) ? rpmfiFLangs(fi) : NULL;
+ if (flangs != NULL && *flangs != '\0') {
const char *l, *le;
char **lang;
for (lang = ts->installLangs; *lang != NULL; lang++) {