diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-01 18:07:19 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-01 18:07:19 +0300 |
commit | f9ae396a43e8aea22ca762b30c336850ba33f840 (patch) | |
tree | ad7a25f1342376fcfd08ca6ab2163c2afb457960 /build/parsePreamble.c | |
parent | 1c00fe0b5fc38af379e0b300dda66f996eed6fc3 (diff) | |
download | librpm-tizen-f9ae396a43e8aea22ca762b30c336850ba33f840.tar.gz librpm-tizen-f9ae396a43e8aea22ca762b30c336850ba33f840.tar.bz2 librpm-tizen-f9ae396a43e8aea22ca762b30c336850ba33f840.zip |
Handle --nolang as another spec parse flag
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r-- | build/parsePreamble.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index 6a56335ce..717f077f8 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -615,8 +615,6 @@ if (multiToken) { \ return RPMRC_FAIL; \ } -extern int noLang; - /** * Check for inappropriate characters. All alphanums are considered sane. * @param spec spec @@ -714,7 +712,7 @@ static int handlePreambleTag(rpmSpec spec, Package pkg, rpmTag tag, case RPMTAG_PACKAGER: if (!*lang) { headerPutString(pkg->header, tag, field); - } else if (!(noLang && !rstreq(lang, RPMBUILD_DEFAULT_LANG))) + } else if (!((spec->flags & RPMSPEC_NOLANG) && !rstreq(lang, RPMBUILD_DEFAULT_LANG))) (void) headerAddI18NString(pkg->header, tag, field, lang); break; case RPMTAG_BUILDROOT: |