diff options
author | jbj <devnull@localhost> | 2002-07-25 18:50:08 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-07-25 18:50:08 +0000 |
commit | e03b4bf8602b591e75c9d85fda69c49ba89c9ffb (patch) | |
tree | 8b6bcdecaa8e0b83eca642f9cb613afa963ff012 | |
parent | e5761bc7250ea40c2e439b481ee1edcb5630a0a4 (diff) | |
download | librpm-tizen-e03b4bf8602b591e75c9d85fda69c49ba89c9ffb.tar.gz librpm-tizen-e03b4bf8602b591e75c9d85fda69c49ba89c9ffb.tar.bz2 librpm-tizen-e03b4bf8602b591e75c9d85fda69c49ba89c9ffb.zip |
- popt: fix --usage (#62234).
CVS patchset: 5573
CVS date: 2002/07/25 18:50:08
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | popt/po/cs.po | 2 | ||||
-rw-r--r-- | popt/po/da.po | 2 | ||||
-rw-r--r-- | popt/po/de.po | 2 | ||||
-rw-r--r-- | popt/po/es.po | 2 | ||||
-rw-r--r-- | popt/po/eu_ES.po | 2 | ||||
-rw-r--r-- | popt/po/fi.po | 2 | ||||
-rw-r--r-- | popt/po/fr.po | 2 | ||||
-rw-r--r-- | popt/po/gl.po | 2 | ||||
-rw-r--r-- | popt/po/hu.po | 2 | ||||
-rw-r--r-- | popt/po/id.po | 2 | ||||
-rw-r--r-- | popt/po/is.po | 2 | ||||
-rw-r--r-- | popt/po/it.po | 2 | ||||
-rw-r--r-- | popt/po/ja.po | 2 | ||||
-rw-r--r-- | popt/po/ko.po | 2 | ||||
-rw-r--r-- | popt/po/no.po | 2 | ||||
-rw-r--r-- | popt/po/pl.po | 2 | ||||
-rw-r--r-- | popt/po/popt.pot | 2 | ||||
-rw-r--r-- | popt/po/pt.po | 2 | ||||
-rw-r--r-- | popt/po/pt_BR.po | 2 | ||||
-rw-r--r-- | popt/po/ro.po | 2 | ||||
-rw-r--r-- | popt/po/ru.po | 2 | ||||
-rw-r--r-- | popt/po/sk.po | 2 | ||||
-rw-r--r-- | popt/po/sl.po | 2 | ||||
-rw-r--r-- | popt/po/sr.po | 2 | ||||
-rw-r--r-- | popt/po/sv.po | 2 | ||||
-rw-r--r-- | popt/po/tr.po | 2 | ||||
-rw-r--r-- | popt/po/uk.po | 2 | ||||
-rw-r--r-- | popt/po/wa.po | 2 | ||||
-rw-r--r-- | popt/po/zh.po | 2 | ||||
-rw-r--r-- | popt/po/zh_CN.GB2312.po | 2 | ||||
-rw-r--r-- | popt/popthelp.c | 35 | ||||
-rw-r--r-- | rpm.spec.in | 1 |
33 files changed, 54 insertions, 43 deletions
@@ -184,6 +184,7 @@ - add yellowdog as vendor. - python: remove the old initdb/rebuilddb methods, use ts.fooDB(). - python: 1st crack at backport to 1.5.2. + - popt: fix --usage (#62234). 4.0.3 -> 4.0.4: - solaris: translate i86pc to i386 (#57182). diff --git a/popt/po/cs.po b/popt/po/cs.po index c86cd32d7..95285b6e7 100644 --- a/popt/po/cs.po +++ b/popt/po/cs.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-07-24 00:03+0100\n" "Last-Translator: Milan Kerslager <kerslage@linux.cz>\n" "Language-Team: Czech <cs@li.org>\n" diff --git a/popt/po/da.po b/popt/po/da.po index 974b4fff9..8db09dd18 100644 --- a/popt/po/da.po +++ b/popt/po/da.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: Sun Jan 21 2001 04:30:32+0200\n" "Last-Translator: Martin Hansen <mah@k64.dk>\n" "Language-Team: Dansk <dansk@klid.dk>\n" diff --git a/popt/po/de.po b/popt/po/de.po index 7bd823121..736af41fb 100644 --- a/popt/po/de.po +++ b/popt/po/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/es.po b/popt/po/es.po index bbbf7eda0..2f08e70e2 100644 --- a/popt/po/es.po +++ b/popt/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Leandro Lucarella <luca@linuxmendoza.org.ar>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/eu_ES.po b/popt/po/eu_ES.po index 7bd823121..736af41fb 100644 --- a/popt/po/eu_ES.po +++ b/popt/po/eu_ES.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/fi.po b/popt/po/fi.po index 7bd823121..736af41fb 100644 --- a/popt/po/fi.po +++ b/popt/po/fi.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/fr.po b/popt/po/fr.po index 7bd823121..736af41fb 100644 --- a/popt/po/fr.po +++ b/popt/po/fr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/gl.po b/popt/po/gl.po index d058039af..52fb00601 100644 --- a/popt/po/gl.po +++ b/popt/po/gl.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-01-17 01:01+0100\n" "Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n" "Language-Team: Galician <trasno@ceu.fi.udc.es>\n" diff --git a/popt/po/hu.po b/popt/po/hu.po index 0f19c6430..c6495bbf2 100644 --- a/popt/po/hu.po +++ b/popt/po/hu.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2000-08-03 23:26+0200\n" "Last-Translator: László Németh <nemeth@qwertynet.hu>\n" "Language-Team: Hungarian\n" diff --git a/popt/po/id.po b/popt/po/id.po index 7bd823121..736af41fb 100644 --- a/popt/po/id.po +++ b/popt/po/id.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/is.po b/popt/po/is.po index 6cf08c8b7..eee26a076 100644 --- a/popt/po/is.po +++ b/popt/po/is.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-06-08 01:35+0000\n" "Last-Translator: Richard Allen <ra@hp.is>\n" "Language-Team: is <kde-isl@mmedia.is>\n" diff --git a/popt/po/it.po b/popt/po/it.po index 7bd823121..736af41fb 100644 --- a/popt/po/it.po +++ b/popt/po/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ja.po b/popt/po/ja.po index 7bd823121..736af41fb 100644 --- a/popt/po/ja.po +++ b/popt/po/ja.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ko.po b/popt/po/ko.po index 6d273f7a4..bdcb3328d 100644 --- a/popt/po/ko.po +++ b/popt/po/ko.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-09-06 20:06+0900\n" "Last-Translator: Jong-Hoon Ryu <redhat4u@netian.com>\n" "Language-Team: GNU Translation project <ko@li.org>\n" diff --git a/popt/po/no.po b/popt/po/no.po index ee34aa83a..50473e2ec 100644 --- a/popt/po/no.po +++ b/popt/po/no.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-06-27 11:05+0200\n" "Last-Translator: Kjartan Maraas <kmaraas@online.no>\n" "Language-Team: Norwegian <no@li.org>\n" diff --git a/popt/po/pl.po b/popt/po/pl.po index 7bd823121..736af41fb 100644 --- a/popt/po/pl.po +++ b/popt/po/pl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/popt.pot b/popt/po/popt.pot index 98699ad64..1e7c60355 100644 --- a/popt/po/popt.pot +++ b/popt/po/popt.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/pt.po b/popt/po/pt.po index 156435fcd..87c006510 100644 --- a/popt/po/pt.po +++ b/popt/po/pt.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2002-02-13 18:32+0000\n" "Last-Translator: Pedro Morais <morais@kde.org>\n" "Language-Team: pt <morais@kde.org>\n" diff --git a/popt/po/pt_BR.po b/popt/po/pt_BR.po index 7bd823121..736af41fb 100644 --- a/popt/po/pt_BR.po +++ b/popt/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/ro.po b/popt/po/ro.po index e6a8b34e8..f4fd8c1e5 100644 --- a/popt/po/ro.po +++ b/popt/po/ro.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2000-06-14 23:23+EST\n" "Last-Translator: Cristian Gafton <gafton@redhat.com>\n" "Language-Team: Romanian <ro@li.org>\n" diff --git a/popt/po/ru.po b/popt/po/ru.po index a7d719eb0..d3e788005 100644 --- a/popt/po/ru.po +++ b/popt/po/ru.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-07-05 21:00-0500\n" "Last-Translator: Eugene Kanter <eugene@blackcatlinux.com>\n" "Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n" diff --git a/popt/po/sk.po b/popt/po/sk.po index 69dc5e4db..2690d92b3 100644 --- a/popt/po/sk.po +++ b/popt/po/sk.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 1999-08-04 21:40+0200\n" "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n" "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n" diff --git a/popt/po/sl.po b/popt/po/sl.po index ea5ea8873..0f972408e 100644 --- a/popt/po/sl.po +++ b/popt/po/sl.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2000-09-05 12:30+0200\n" "Last-Translator: Roman Maurer <roman.maurer@hermes.si>\n" "Language-Team: Slovenian <sl@li.org>\n" diff --git a/popt/po/sr.po b/popt/po/sr.po index 7bd823121..736af41fb 100644 --- a/popt/po/sr.po +++ b/popt/po/sr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/sv.po b/popt/po/sv.po index 1bf94d15b..5a6f9aed8 100644 --- a/popt/po/sv.po +++ b/popt/po/sv.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2001-07-12 22:26+0100\n" "Last-Translator: Christian Rose <menthos@menthos.com>\n" "Language-Team: Swedish <sv@li.org>\n" diff --git a/popt/po/tr.po b/popt/po/tr.po index ea3323336..371eb50e5 100644 --- a/popt/po/tr.po +++ b/popt/po/tr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 2000-02-11 13:01+0200\n" "Last-Translator: Nilgun Belma Buguner <nilgun@technologist.com>\n" "Language-Team: Turkish <tr@li.org>\n" diff --git a/popt/po/uk.po b/popt/po/uk.po index 32bfb6ed5..a8b5f6223 100644 --- a/popt/po/uk.po +++ b/popt/po/uk.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 1999-09-30 16:54+0200\n" "Last-Translator: Yuri Syrota <rasta@renome.rovno.ua>\n" "Language-Team: Ukrainian <uk@li.org>\n" diff --git a/popt/po/wa.po b/popt/po/wa.po index 4752adeb6..b48a4de64 100644 --- a/popt/po/wa.po +++ b/popt/po/wa.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 1999-03-18 23:11+0100\n" "Last-Translator: Nobody yet\n" "Language-Team: walon <linux-wa@chanae.alphanet.ch>\n" diff --git a/popt/po/zh.po b/popt/po/zh.po index 7bd823121..736af41fb 100644 --- a/popt/po/zh.po +++ b/popt/po/zh.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" diff --git a/popt/po/zh_CN.GB2312.po b/popt/po/zh_CN.GB2312.po index b7cf54ccf..6522f8163 100644 --- a/popt/po/zh_CN.GB2312.po +++ b/popt/po/zh_CN.GB2312.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: popt 1.6.3\n" -"POT-Creation-Date: 2002-07-25 11:05-0400\n" +"POT-Creation-Date: 2002-07-25 14:27-0400\n" "PO-Revision-Date: 1999-11-11 05:04+0800\n" "Last-Translator: Dillion Chen <dillon.chen@turbolinux.com.cn>\n" "Language-Team: TLDN\n" diff --git a/popt/popthelp.c b/popt/popthelp.c index bb00e92de..94af48159 100644 --- a/popt/popthelp.c +++ b/popt/popthelp.c @@ -521,24 +521,26 @@ static int singleOptionUsage(FILE * fp, int cursor, /*@globals fileSystem @*/ /*@modifies *fp, fileSystem @*/ { - int len = 3; + int len = 4; char shortStr[2] = { '\0', '\0' }; const char * item = shortStr; const char * argDescrip = getArgDescrip(opt, translation_domain); -fprintf(stderr, "*** singleOptionUsage(%p,%d,%p,%p)\n", fp, cursor, opt, translation_domain); - if (opt->shortName!= '\0' ) { - if (!(opt->argInfo & POPT_ARG_MASK)) - return cursor; /* we did these already */ + if (opt->shortName != '\0' && opt->longName != NULL) { + len += 2; + if (!(opt->argInfo & POPT_ARGFLAG_ONEDASH)) len++; + len += strlen(opt->longName); + } else if (opt->shortName != '\0') { len++; shortStr[0] = opt->shortName; shortStr[1] = '\0'; } else if (opt->longName) { - len += 1 + strlen(opt->longName); + len += strlen(opt->longName); + if (!(opt->argInfo & POPT_ARGFLAG_ONEDASH)) len++; item = opt->longName; } - if (len == 3) return cursor; + if (len == 4) return cursor; if (argDescrip) len += strlen(argDescrip) + 1; @@ -548,11 +550,19 @@ fprintf(stderr, "*** singleOptionUsage(%p,%d,%p,%p)\n", fp, cursor, opt, transla cursor = 7; } - fprintf(fp, " [-%s%s%s%s]", - ((opt->shortName || (opt->argInfo & POPT_ARGFLAG_ONEDASH)) ? "" : "-"), - item, - (argDescrip ? (opt->shortName != '\0' ? " " : "=") : ""), - (argDescrip ? argDescrip : "")); + if (opt->shortName && opt->longName) { + fprintf(fp, " [-%c|-%s%s%s%s]", + opt->shortName, ((opt->argInfo & POPT_ARGFLAG_ONEDASH) ? "" : "-"), + opt->longName, + (argDescrip ? " " : ""), + (argDescrip ? argDescrip : "")); + } else { + fprintf(fp, " [-%s%s%s%s]", + ((opt->shortName || (opt->argInfo & POPT_ARGFLAG_ONEDASH)) ? "" : "-"), + item, + (argDescrip ? (opt->shortName != '\0' ? " " : "=") : ""), + (argDescrip ? argDescrip : "")); + } return cursor + len + 1; } @@ -603,7 +613,6 @@ static int singleTableUsage(poptContext con, FILE * fp, /*@globals fileSystem @*/ /*@modifies *fp, fileSystem @*/ { -fprintf(stderr, "*** singleTableUsage(%p,%p,%d,%p,%p)\n", con, fp, cursor, opt, translation_domain); /*@-branchstate@*/ /* FIX: W2DO? */ if (opt != NULL) for (; (opt->longName || opt->shortName || opt->arg) ; opt++) { diff --git a/rpm.spec.in b/rpm.spec.in index 8a60ad7eb..2c2c3db6b 100644 --- a/rpm.spec.in +++ b/rpm.spec.in @@ -517,6 +517,7 @@ fi * Thu Jul 25 2002 Jeff Johnson <jbj@redhat.com> - python: remove the old initdb/rebuilddb methods, use ts.fooDB(). - python: 1st crack at backport to 1.5.2. +- popt: fix --usage (#62234). * Wed Jul 24 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.55 - imbue %ghost with missingok attribute with --verify (#68933). |