From 73ee3b2e8657ea8367a34e683bb7a3fc73af8494 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 17 Dec 2000 19:55:31 +0000 Subject: [PATCH] Move assertion to avoid false failure. CVS patchset: 4352 CVS date: 2000/12/17 19:55:31 --- lib/header.c | 4 +-- po/cs.po | 4 +-- po/da.po | 4 +-- po/de.po | 4 +-- po/es.po | 4 +-- po/fi.po | 4 +-- po/fr.po | 4 +-- po/gl.po | 4 +-- po/hu.po | 4 +-- po/id.po | 4 +-- po/is.po | 4 +-- po/it.po | 4 +-- po/ja.po | 6 ++--- po/ko.po | 4 +-- po/no.po | 4 +-- po/pl.po | 4 +-- po/pt.po | 4 +-- po/pt_BR.po | 4 +-- po/ro.po | 4 +-- po/rpm.pot | 4 +-- po/ru.po | 4 +-- po/sk.po | 4 +-- po/sl.po | 6 ++--- po/sr.po | 4 +-- po/sv.po | 4 +-- po/tr.po | 4 +-- po/uk.po | 4 +-- po/wa.po | 4 +-- po/zh.po | 4 +-- po/zh_CN.GB2312.po | 4 +-- scripts/trpm | 78 +++++++++++++++++++++++++++++++++++++++--------------- 31 files changed, 119 insertions(+), 83 deletions(-) diff --git a/lib/header.c b/lib/header.c index d9087b2..c1b2952 100644 --- a/lib/header.c +++ b/lib/header.c @@ -278,13 +278,14 @@ static int regionSwab(struct indexEntry * entry, int il, int dl, ie.info.tag = ntohl(pe->tag); ie.info.type = ntohl(pe->type); - assert(ie.info.type >= RPM_MIN_TYPE && ie.info.type <= RPM_MAX_TYPE); ie.info.count = ntohl(pe->count); ie.info.offset = ntohl(pe->offset); ie.data = t = dataStart + ie.info.offset; ie.length = dataLength(ie.info.type, ie.data, ie.info.count, 1); ie.rdlen = 0; +assert(ie.info.type >= RPM_MIN_TYPE && ie.info.type <= RPM_MAX_TYPE); + if (entry) { ie.info.offset = regionid; *entry = ie; /* structure assignment */ @@ -579,7 +580,6 @@ assert(rdlen == dl); } } - } h->sorted = 0; diff --git a/po/cs.po b/po/cs.po index ae5e495..b888362 100644 --- a/po/cs.po +++ b/po/cs.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-08-23 22:24+0100\n" "Last-Translator: Milan Kerslager \n" "Language-Team: Czech \n" @@ -3014,7 +3014,7 @@ msgstr "bal #: lib/problems.c:116 #, fuzzy, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "soubor %s zpùsobuje konflikt mezi instalovaným %s-%s-%s a %s-%s-%s" #: lib/problems.c:121 diff --git a/po/da.po b/po/da.po index a515671..8ef07fc 100644 --- a/po/da.po +++ b/po/da.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-03-07 05:17+01:00\n" "Last-Translator: K. Christiansen \n" "Language-Team: Danish/Dansk \n" @@ -2974,7 +2974,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/de.po b/po/de.po index 3580372..fe92a37 100644 --- a/po/de.po +++ b/po/de.po @@ -37,7 +37,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 1998-08-03 18:02+02:00\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" @@ -3261,7 +3261,7 @@ msgstr "Paket %s ist nicht installiert\n" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/es.po b/po/es.po index 7ec50f4..1b8ab90 100644 --- a/po/es.po +++ b/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/fi.po b/po/fi.po index 286267f..5b48495 100644 --- a/po/fi.po +++ b/po/fi.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "Last-Translator: Raimo Koski \n" "Language-Team: Finnish \n" "Content-Type: text/plain; charset=\n" @@ -3177,7 +3177,7 @@ msgstr "paketti %s ei ole asennettu\n" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/fr.po b/po/fr.po index 50bd641..c71ed1a 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,5 +1,5 @@ msgid "" -msgstr "POT-Creation-Date: 2000-12-14 17:04-0500\n" +msgstr "POT-Creation-Date: 2000-12-17 14:41-0500\n" #: build.c:26 #, fuzzy, c-format @@ -3182,7 +3182,7 @@ msgstr "aucun package n'a #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/gl.po b/po/gl.po index 7ec50f4..1b8ab90 100644 --- a/po/gl.po +++ b/po/gl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/hu.po b/po/hu.po index 7ec50f4..1b8ab90 100644 --- a/po/hu.po +++ b/po/hu.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/id.po b/po/id.po index 7ec50f4..1b8ab90 100644 --- a/po/id.po +++ b/po/id.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/is.po b/po/is.po index e590244..5d86494 100644 --- a/po/is.po +++ b/po/is.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-08-02 13:00+0000\n" "Last-Translator: Richard Allen \n" "Language-Team: is \n" @@ -2969,7 +2969,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/it.po b/po/it.po index 7ec50f4..1b8ab90 100644 --- a/po/it.po +++ b/po/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/ja.po b/po/ja.po index f8e043a..5a0ed46 100644 --- a/po/ja.po +++ b/po/ja.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 1999-12-01 22:49 +JST\n" "Last-Translator: Kanda Mitsuru \n" "Language-Team: JRPM \n" @@ -88,7 +88,7 @@ msgstr " # build root [BuildRoot] # net share [¥Í¥Ã¥È¶¦Í­] # reloate [ºÆÇÛÃÖ/°ÜÆ°¤¹¤ë] -# $Id: ja.po,v 1.125 2000/12/14 22:14:31 jbj Exp $ +# $Id: ja.po,v 1.126 2000/12/17 19:55:32 jbj Exp $ #: rpm.c:185 rpmqv.c:269 #, c-format msgid "rpm: %s\n" @@ -3131,7 +3131,7 @@ msgstr " #: lib/problems.c:116 #, fuzzy, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" "¥Õ¥¡¥¤¥ë %s ¤Ï %s-%s-%s ¤È %s-%s-%s ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Î¥Õ¥¡¥¤¥ë¤È¶¥¹ç¤·¤Æ¤¤¤Þ¤¹" diff --git a/po/ko.po b/po/ko.po index 7ec50f4..1b8ab90 100644 --- a/po/ko.po +++ b/po/ko.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/no.po b/po/no.po index e6e4adb..e47eda4 100644 --- a/po/no.po +++ b/po/no.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-08-17 20:22+02:00\n" "Last-Translator: Kjartan Maraas \n" "Language-Team: Norwegian \n" @@ -2989,7 +2989,7 @@ msgstr "pakke %s kan ikke relokeres\n" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/pl.po b/po/pl.po index 8cf8af4..7a612b1 100644 --- a/po/pl.po +++ b/po/pl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 1999-05-25 17:00+0100\n" "Last-Translator: Pawe³ Dziekoñski \n" "Language-Team: Polish \n" @@ -3117,7 +3117,7 @@ msgstr "pakiet %s nie jest przesuwalny\n" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/pt.po b/po/pt.po index 7aec62c..e9226c8 100644 --- a/po/pt.po +++ b/po/pt.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-08-01 21:11+01:00\n" "Last-Translator: Pedro Morais \n" "Language-Team: pt \n" @@ -2939,7 +2939,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/pt_BR.po b/po/pt_BR.po index 0b4b5ce..21cfa10 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -2,7 +2,7 @@ # Revised by Arnaldo Carvalho de Melo , 1998. # msgid "" -msgstr "POT-Creation-Date: 2000-12-14 17:04-0500\n" +msgstr "POT-Creation-Date: 2000-12-17 14:41-0500\n" # , c-format #: build.c:26 @@ -3254,7 +3254,7 @@ msgstr "n #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/ro.po b/po/ro.po index 016942c..1e7feef 100644 --- a/po/ro.po +++ b/po/ro.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 1999-04-10 12:00+EST\n" "Last-Translator: Cristian Gafton \n" "Language-Team: Romanian \n" @@ -2937,7 +2937,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/rpm.pot b/po/rpm.pot index dae458a..b49784e 100644 --- a/po/rpm.pot +++ b/po/rpm.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/ru.po b/po/ru.po index 11feeb3..96bf8f6 100644 --- a/po/ru.po +++ b/po/ru.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-08-08 01:20+0300\n" "Last-Translator: Eugene Kanter \n" "Language-Team: Black Cat Linux Team \n" @@ -3030,7 +3030,7 @@ msgstr " #: lib/problems.c:116 #, fuzzy, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "ËÏÎÆÌÉËÔ ÆÁÊÌÁ %s ÐÒÉ ÐÏÐÙÔËÁÈ ÕÓÔÁÎÏ×ËÉ %s-%s-%s É %s-%s-%s" #: lib/problems.c:121 diff --git a/po/sk.po b/po/sk.po index 8695846..9be96ef 100644 --- a/po/sk.po +++ b/po/sk.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 1999-04-08 21:37+02:00\n" "Last-Translator: Stanislav Meduna \n" "Language-Team: Slovak \n" @@ -3126,7 +3126,7 @@ msgstr "bal #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/sl.po b/po/sl.po index fb074c9..23998a1 100644 --- a/po/sl.po +++ b/po/sl.po @@ -1,12 +1,12 @@ # -*- mode:po; coding:iso-latin-2; -*- Slovenian messages for Redhat pkg. mngr. # Copyright (C) 2000 Free Software Foundation, Inc. # Primo¾ Peterlin , 2000. -# $Id: sl.po,v 1.110 2000/12/14 22:14:33 jbj Exp $ +# $Id: sl.po,v 1.111 2000/12/17 19:55:49 jbj Exp $ # msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-10-08 19:05+0200\n" "Last-Translator: Grega Fajdiga \n" "Language-Team: Slovenian \n" @@ -3112,7 +3112,7 @@ msgstr "paketa %s ni mo #: lib/problems.c:116 #, fuzzy, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "datoteka %s je v sporu med poskusom namestitve %s in %s" #: lib/problems.c:121 diff --git a/po/sr.po b/po/sr.po index 83b4c64..e695cc0 100644 --- a/po/sr.po +++ b/po/sr.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "Content-Type: text/plain; charset=\n" "Date: 1998-05-02 21:41:47-0400\n" "From: Erik Troan \n" @@ -3132,7 +3132,7 @@ msgstr "paket %s nije instaliran\n" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/sv.po b/po/sv.po index d366b09..4f47a40 100644 --- a/po/sv.po +++ b/po/sv.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: 2000-10-09 22:31+0200\n" "Last-Translator: Göran Uddeborg \n" "Language-Team: Swedish \n" @@ -3004,7 +3004,7 @@ msgstr "paket %s #: lib/problems.c:116 #, fuzzy, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" "filen %s är en konflikt mellan installationsförsök av %s-%s-%s och %s-%s-%s" diff --git a/po/tr.po b/po/tr.po index 16f7fef..cf392f8 100644 --- a/po/tr.po +++ b/po/tr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -3188,7 +3188,7 @@ msgstr "%s pakedi y #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/uk.po b/po/uk.po index 7ec50f4..1b8ab90 100644 --- a/po/uk.po +++ b/po/uk.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/wa.po b/po/wa.po index 7ec50f4..1b8ab90 100644 --- a/po/wa.po +++ b/po/wa.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/zh.po b/po/zh.po index 7ec50f4..1b8ab90 100644 --- a/po/zh.po +++ b/po/zh.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/po/zh_CN.GB2312.po b/po/zh_CN.GB2312.po index 7ec50f4..1b8ab90 100644 --- a/po/zh_CN.GB2312.po +++ b/po/zh_CN.GB2312.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0.1\n" -"POT-Creation-Date: 2000-12-14 17:04-0500\n" +"POT-Creation-Date: 2000-12-17 14:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2942,7 +2942,7 @@ msgstr "" #: lib/problems.c:116 #, c-format -msgid "file %s conflicts between attemped installs of %s and %s" +msgid "file %s conflicts between attempted installs of %s and %s" msgstr "" #: lib/problems.c:121 diff --git a/scripts/trpm b/scripts/trpm index 71863c4..c3eefec 100755 --- a/scripts/trpm +++ b/scripts/trpm @@ -2,18 +2,22 @@ dbg= # echo +rpm=/bin/rpm +rpmb=/usr/bin/rpmbuild +rpmq=/usr/bin/rpmquery +rpmdb=/usr/bin/rpmdb + dist=7.0 -type=all -arch=`/bin/rpm --eval '%{_arch}'` +type=min +arch=`$rpm --eval '%{_arch}'` -root=`pwd`/root +top=`pwd` +root=$top/$dist sudo=sudo -rpm="/X/src/rpm401/rpm --root $root" -rpmb=/usr/bin/rpmbuild -rpmdb=/usr/bin/rpmdb justdb="--justdb --noscripts --notriggers --ignoresize" dmopts="-l dmalloc.log -i 100 low" db1= +rc="--rcfile $top/rpmrc-$dist" sorted= # "| sort" minglob=" @@ -123,7 +127,7 @@ m4- perl- tcsh- " - +classes="min min1 min2 base devel build" notallpat="(kernel-[^2h])" for cmd in $* @@ -133,54 +137,86 @@ do debug) dbg=echo ;; dmalloc) eval `dmalloc -b $dmopts` ;; db1) db1="--define '%_dbapi 1'" ;; - 5.2|6.2|7.0|7.1) dist=$cmd ;; + 5.2|6.2|7.0|7.1) + dist=$cmd + root=$top/$dist + rc="--rcfile $top/rpmrc-$dist $db1" + $dbg mkdir -p $root/{X/tmp,X/RPMS,X/SRPMS} || exit 1 + cat << EOF > $top/rpmrc-$dist +include: /usr/lib/rpm/rpmrc +macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:$top/macros:$top/macros-$dist-$arch +EOF + cat << EOF > $top/macros-$dist-$arch +%_topdir $root/X +EOF + ;; + config) + $dbg cat << EOF > $top/macros +%_ntopdir %{_topdir}/%{name}-%{version}-%{release} +%_builddir %{_ntopdir} +%_sourcedir %{_ntopdir} +%_specdir %{_ntopdir} +%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm +%_rpmdir %{_topdir}/RPMS +%_srcrpmdir %{_topdir}/SRPMS +%_tmppath %{_topdir}/tmp +EOF + ;; manifest) rm -f *-$dist-$arch pkgs="/$dist/$arch" ls -1 ${pkgs}/*.rpm | egrep "(noarch|$arch).rpm" > list-$dist-$arch cat list-$dist-$arch | egrep -v $notallpat > all-$dist-$arch - for l in min min1 min2 base devel build - do + $dbg $rpmq $rc -qp --qf "/$dist/SRPMS/%{sourcerpm}\\n" \ +`cat all-$dist-$arch` | sort | uniq > all-$dist-$arch-srpms + for l in $classes ; do glv='$'${l}glob glist="`eval echo $glv`" for g in $glist ; do ls -1 ${pkgs}/${g}*.rpm 2> /dev/null done | egrep "(noarch|$arch).rpm" $sorted > $l-$dist-$arch + $dbg $rpmq $rc -qp --qf "/$dist/SRPMS/%{sourcerpm}\\n" \ +`cat $l-$dist-$arch` | sort | uniq > $l-$dist-$arch-srpms + done + ;; + clean) + $dbg $sudo mv $root ${root}-$$ && $dbg $sudo rm -rf ${root}-$$ + ;; + --rebuild) + for srpm in `cat $type-$dist-$arch-srpms` ; do + $dbg $rpmb $rc $cmd $srpm done ;; --initdb) - [ -d $root ] && \ - $dbg $sudo mv $root ${root}-$$ && \ - $dbg $sudo rm -rf ${root}-$$ & - sleep 2 $dbg $sudo mkdir -p $root/var/lib/rpm - $dbg $sudo $rpm $db1 --initdb + $dbg $sudo $rpmdb $rc --root $root --initdb ;; --savedb) ( $dbg cd $root/var/lib && $dbg $sudo tar czvf rpmdb.tar.gz rpm ; ) ;; --rebuilddb) - $dbg $sudo $rpm --rebuilddb -vv + $dbg $sudo $rpmdb $rc --root $root --rebuilddb -vv ;; --justdb) [ -f $type-$dist-$arch ] || { echo $type-$dist-$arch not found exit 1 } - $dbg $sudo $rpm $db1 -Uv $justdb `cat $type-$dist-$arch` + $dbg $sudo $rpm $rc --root $root -Uv $justdb `cat $type-$dist-$arch` ;; -U*|-F*) [ -f $type-$dist-$arch ] || { echo $type-$dist-$arch not found exit 1 } - $dbg $sudo $rpm $db1 $cmd `cat $type-$dist-$arch` + $dbg $sudo $rpm $rc --root $root $cmd `cat $type-$dist-$arch` ;; - -[Vqei]*) - $dbg $sudo $rpm $cmd + -[Vqei]*|--showrc) + $dbg $sudo $rpm $rc --root $root $cmd ;; chroot) - $dbg $sudo cp /etc/resolv.conf $root/etc + $dbg $sudo touch $root/etc/mtab + $dbg $sudo cp /etc/resolv.conf /etc/fstab $root/etc $dbg $sudo env HOME=/root chroot $root ;; *) type=$cmd ;; -- 2.7.4