diff options
author | jbj <devnull@localhost> | 1998-08-11 18:24:48 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-08-11 18:24:48 +0000 |
commit | f612cb1bf38b0179bff78ed1b9303af287745ca3 (patch) | |
tree | fa252385d05526ee272fc7a3b57419d1934ee31c /build/parseDescription.c | |
parent | 8ff713d13030f2f598e33535366f785047bd50e4 (diff) | |
download | rpm-f612cb1bf38b0179bff78ed1b9303af287745ca3.tar.gz |
Sync with 2.5.2 branch patches.
cpio_gzip: dup the fd before doing gzdopen (Thanks Erik!)
add --noLang to skip non-default languages.
CVS patchset: 2243
CVS date: 1998/08/11 18:24:48
Diffstat (limited to 'build/parseDescription.c')
-rw-r--r-- | build/parseDescription.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/parseDescription.c b/build/parseDescription.c index 912823ded..0af14a230 100644 --- a/build/parseDescription.c +++ b/build/parseDescription.c @@ -4,6 +4,8 @@ #include "popt/popt.h" +extern int noLang; /* XXX FIXME: pass as arg */ + /* These have to be global scope to make up for *stupid* compilers */ static char *name; static char *lang; @@ -107,8 +109,10 @@ int parseDescription(Spec spec) } stripTrailingBlanksStringBuf(sb); - headerAddI18NString(pkg->header, RPMTAG_DESCRIPTION, + if (!(noLang && strcmp(lang, RPMBUILD_DEFAULT_LANG))) { + headerAddI18NString(pkg->header, RPMTAG_DESCRIPTION, getStringBuf(sb), lang); + } freeStringBuf(sb); |