diff options
author | jbj <devnull@localhost> | 2000-07-29 20:31:56 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-07-29 20:31:56 +0000 |
commit | 6040ca6f5333229b24e9bc319e87ba797601dbc3 (patch) | |
tree | 50a53f9fa92cb77eaaacb6615a804ff5cbacdd6c | |
parent | 61cabed3ed4bfb065664d65fbd897e1a03be141f (diff) | |
download | librpm-tizen-6040ca6f5333229b24e9bc319e87ba797601dbc3.tar.gz librpm-tizen-6040ca6f5333229b24e9bc319e87ba797601dbc3.tar.bz2 librpm-tizen-6040ca6f5333229b24e9bc319e87ba797601dbc3.zip |
- re-resurrect firstkey/nextkey python bindings for up2date compatibility.
CVS patchset: 3992
CVS date: 2000/07/29 20:31:56
-rw-r--r-- | lib/db1.c | 6 | ||||
-rw-r--r-- | po/cs.po | 19 | ||||
-rw-r--r-- | po/da.po | 19 | ||||
-rw-r--r-- | po/de.po | 21 | ||||
-rw-r--r-- | po/es.po | 19 | ||||
-rw-r--r-- | po/fi.po | 19 | ||||
-rw-r--r-- | po/fr.po | 19 | ||||
-rw-r--r-- | po/gl.po | 19 | ||||
-rw-r--r-- | po/hu.po | 19 | ||||
-rw-r--r-- | po/id.po | 19 | ||||
-rw-r--r-- | po/is.po | 19 | ||||
-rw-r--r-- | po/it.po | 19 | ||||
-rw-r--r-- | po/ja.po | 21 | ||||
-rw-r--r-- | po/ko.po | 19 | ||||
-rw-r--r-- | po/no.po | 19 | ||||
-rw-r--r-- | po/pl.po | 19 | ||||
-rw-r--r-- | po/pt.po | 19 | ||||
-rw-r--r-- | po/pt_BR.po | 21 | ||||
-rw-r--r-- | po/ro.po | 19 | ||||
-rw-r--r-- | po/rpm.pot | 19 | ||||
-rw-r--r-- | po/ru.po | 19 | ||||
-rw-r--r-- | po/sk.po | 19 | ||||
-rw-r--r-- | po/sl.po | 21 | ||||
-rw-r--r-- | po/sr.po | 19 | ||||
-rw-r--r-- | po/sv.po | 19 | ||||
-rw-r--r-- | po/tr.po | 19 | ||||
-rw-r--r-- | po/uk.po | 19 | ||||
-rw-r--r-- | po/wa.po | 19 | ||||
-rw-r--r-- | po/zh.po | 19 | ||||
-rw-r--r-- | po/zh_CN.GB2312.po | 19 | ||||
-rw-r--r-- | python/rpmmodule.c | 70 | ||||
-rw-r--r-- | rpm.spec | 3 |
32 files changed, 368 insertions, 270 deletions
@@ -431,9 +431,7 @@ static int db1open(rpmdb rpmdb, int rpmtag, dbiIndex * dbip) pkgs = fadOpen(fn, dbi->dbi_mode, dbi->dbi_perms); if (Ferror(pkgs)) { - rc = EFAULT; - rpmError(RPMERR_DBOPEN, _("failed to open %s: %s\n"), urlfn, - Fstrerror(pkgs)); + rc = errno; /* XXX check errno validity */ goto exit; } @@ -447,7 +445,7 @@ static int db1open(rpmdb rpmdb, int rpmtag, dbiIndex * dbip) l.l_type = (dbi->dbi_mode & O_RDWR) ? F_WRLCK : F_RDLCK; if (Fcntl(pkgs, F_SETLK, (void *) &l)) { - rc = EFAULT; + rc = errno; /* XXX check errno validity */ rpmError(RPMERR_FLOCK, _("cannot get %s lock on database"), ((dbi->dbi_mode & O_RDWR) ? _("exclusive") : _("shared"))); goto exit; @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-07-27 15:59+0100\n" "Last-Translator: Milan Kerslager <milan.kerslager@spsselib.hiedu.cz>\n" "Language-Team: Czech <cs@li.org>\n" @@ -2330,21 +2330,17 @@ msgstr "¹patný db soubor %s" msgid "opening db file %s mode 0x%x\n" msgstr "otevírám db soubor %s mode 0x%x\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "nemohu otevøít %s: %s\n" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "nemohu zamknout databázi %s" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "výhradní" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "sdílený" @@ -3921,6 +3917,11 @@ msgstr "chyba: %sport musí být èíslo\n" msgid "url port must be a number\n" msgstr "url port musí být èíslo\n" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "nemohu otevøít %s: %s\n" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-03-07 05:17+01:00\n" "Last-Translator: K. Christiansen <kenneth@gnu.org>\n" "Language-Team: Danish/Dansk <dansk@klid.dk>\n" @@ -2294,21 +2294,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3852,6 +3848,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -37,7 +37,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 2.5.2\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 1998-08-03 18:02+02:00\n" "Last-Translator: Karl Eichwalder <ke@SuSE.DE>\n" "Language-Team: German <de@li.org>\n" @@ -2534,22 +2534,17 @@ msgstr "Öffnen von %s fehlgeschlagen: %s" msgid "opening db file %s mode 0x%x\n" msgstr "Datenbank aus der vorhandenen neu erstellen" -# , c-format -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "Öffnen von %s fehlgeschlagen: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "kann %s lock für die Datenbank nicht bekommen" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "exklusiv" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "geteilt" @@ -4186,6 +4181,12 @@ msgid "url port must be a number\n" msgstr "Fehler: der FTP-Port muss eine Zahl sein\n" # , c-format +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "Öffnen von %s fehlgeschlagen: %s" + +# , c-format #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "Last-Translator: Raimo Koski <rkoski@pp.weppi.fi>\n" "Language-Team: Finnish <linux@sot.com>\n" "Content-Type: text/plain; charset=\n" @@ -2473,21 +2473,17 @@ msgstr "en voinut avata %s: %s" msgid "opening db file %s mode 0x%x\n" msgstr "kokoa tietokanta uudelleen vanhasta tietokannasta" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "en voinut avata %s: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "en voi saada %s lukitusta tietokantaan" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "poissulkevaa" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "jaettua" @@ -4097,6 +4093,11 @@ msgstr "virhe: ftpport pitää olla luku\n" msgid "url port must be a number\n" msgstr "virhe: ftpport pitää olla luku\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "en voinut avata %s: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -1,5 +1,5 @@ msgid "" -msgstr "POT-Creation-Date: 2000-07-29 13:25-0400\n" +msgstr "POT-Creation-Date: 2000-07-29 16:29-0400\n" #: build.c:25 lib/rpminstall.c:451 #, c-format @@ -2467,21 +2467,17 @@ msgstr "impossible d'ouvrir: %s\n" msgid "opening db file %s mode 0x%x\n" msgstr "impossible d'ouvrir: %s\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "impossible d'ouvrir: %s\n" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, fuzzy, c-format msgid "cannot get %s lock on database" msgstr "aucun package n'a été spécifié pour la désinstallation" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -4072,6 +4068,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "impossible d'ouvrir: %s\n" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 1.0\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-06-16 02:20+0000\n" "Last-Translator: Richard Allen <ra@hp.is>\n" "Language-Team: is <kde-isl@mmedia.is>\n" @@ -2268,21 +2268,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3826,6 +3822,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm-3.0.4\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 1999-12-01 22:49 +JST\n" "Last-Translator: Kanda Mitsuru <kanda@nn.iij4u.or.jp>\n" "Language-Team: JRPM <jrpm@linux.or.jp>\n" @@ -83,7 +83,7 @@ msgstr "¥¿¡¼¥²¥Ã¥È %s ÍѤ˺îÀ®Ãæ\n" # build root [BuildRoot] # net share [¥Í¥Ã¥È¶¦Í] # reloate [ºÆÇÛÃÖ/°ÜÆ°¤¹¤ë] -# $Id: ja.po,v 1.103 2000/07/29 17:30:19 jbj Exp $ +# $Id: ja.po,v 1.104 2000/07/29 20:31:57 jbj Exp $ #: rpm.c:178 rpmqv.c:257 #, c-format msgid "rpm: %s\n" @@ -2415,21 +2415,17 @@ msgstr "ÉÔÀµ¤Ê¥Õ¥¡¥¤¥ë¤Î¾õÂÖ: %s" msgid "opening db file %s mode 0x%x\n" msgstr "¥Ç¡¼¥¿¥Ù¡¼¥¹¥â¡¼¥É 0x%x ¤Î¥ª¡¼¥×¥ó (%s)\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "%s ¤Î¥ª¡¼¥×¥ó¤Ë¼ºÇÔ: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î %s ¤ò¥í¥Ã¥¯¤Ç¤¤Þ¤»¤ó" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "½ü³°" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "¶¦Í" @@ -4055,6 +4051,11 @@ msgstr "¥¨¥é¡¼: %s¥Ý¡¼¥È¤Ï¿ô»ú¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó\n" msgid "url port must be a number\n" msgstr "url ¥Ý¡¼¥È¤Ï¿ô»ú¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "%s ¤Î¥ª¡¼¥×¥ó¤Ë¼ºÇÔ: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-06-22 21:59+02:00\n" "Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n" "Language-Team: Norwegian <no@li.org>\n" @@ -2298,21 +2298,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3856,6 +3852,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm-3.0.2\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 1999-05-25 17:00+0100\n" "Last-Translator: Pawe³ Dziekoñski <pdziekonski@mml.ch.pwr.wroc.pl>\n" "Language-Team: Polish <pl@li.org>\n" @@ -2416,21 +2416,17 @@ msgstr "b³êdny status pliku: %s" msgid "opening db file %s mode 0x%x\n" msgstr "otwiernie bazê danych w trybie 0x%x w %s\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "nie mo¿na otworzyæ %s: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "utworzenie blokady %s na bazie danych nie jest mo¿liwe" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -4006,6 +4002,11 @@ msgstr "b³±d: %sport musi byæ liczb±\n" msgid "url port must be a number\n" msgstr "port musi byæ liczb±\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "nie mo¿na otworzyæ %s: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format diff --git a/po/pt_BR.po b/po/pt_BR.po index 175d77a61..67adb8247 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -2,7 +2,7 @@ # Revised by Arnaldo Carvalho de Melo <acme@conectiva.com.br>, 1998. # msgid "" -msgstr "POT-Creation-Date: 2000-07-29 13:25-0400\n" +msgstr "POT-Creation-Date: 2000-07-29 16:29-0400\n" #: build.c:25 lib/rpminstall.c:451 #, c-format @@ -2535,22 +2535,17 @@ msgstr "Não consegui abrir: %s\n" msgid "opening db file %s mode 0x%x\n" msgstr "reconstrua o banco de dados a partir de um banco de dados existente" -# , c-format -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "Não consegui abrir: %s\n" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, fuzzy, c-format msgid "cannot get %s lock on database" msgstr "não foi passado pacote para desinstalação" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -4201,6 +4196,12 @@ msgid "url port must be a number\n" msgstr "" # , c-format +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "Não consegui abrir: %s\n" + +# , c-format #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 4.0\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 1999-04-10 12:00+EST\n" "Last-Translator: Cristian Gafton <gafton@redhat.com>\n" "Language-Team: Romanian <ro@li.org>\n" @@ -2268,21 +2268,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3826,6 +3822,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format diff --git a/po/rpm.pot b/po/rpm.pot index 19aae58de..4152a8229 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-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=koi8-r\n" "Content-Transfer-Encoding: 8bit\n" @@ -2420,21 +2420,17 @@ msgstr "ÎÅ×ÅÒÎÏÅ ÓÏÓÔÏÑÎÉÅ ÆÁÊÌÁ: %s" msgid "opening db file %s mode 0x%x\n" msgstr "ÏÔËÒÙ×ÁÀ ÂÁÚÕ × ÒÅÖÉÍÅ 0x%x × %s\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "ÎÅ ÍÏÇÕ ÏÔËÒÙÔØ %s: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "ÎÅ ÍÏÇÕ ÐÏÌÕÞÉÔØ %s ÄÏÓÔÕÐ Ë ÂÁÚÅ ÄÁÎÎÙÈ" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "ÉÓËÌÀÞÉÔÅÌØÎÙÊ" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "ÒÁÚÄÅÌÑÅÍÙÊ" @@ -4005,6 +4001,11 @@ msgstr "ÏÛÉÂËÁ: %sport ÄÏÌÖÅÎ ÂÙÔØ ÞÉÓÌÏÍ\n" msgid "url port must be a number\n" msgstr "url port ÄÏÌÖÅÎ ÂÙÔØ ÞÉÓÌÏÍ\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "ÎÅ ÍÏÇÕ ÏÔËÒÙÔØ %s: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: rpm 2.93\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 1999-04-08 21:37+02:00\n" "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n" "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n" @@ -2425,21 +2425,17 @@ msgstr "chybný stav súboru: %s" msgid "opening db file %s mode 0x%x\n" msgstr "otvára sa databáza s právami 0x%x v %s\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "nepodarilo sa otvori» %s: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "nie je mo¾né získa» %s zámok pre databázu" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "výhradný" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "zdieµaný" @@ -4015,6 +4011,11 @@ msgstr "chyba: %sport musí by» èíslo\n" msgid "url port must be a number\n" msgstr "url port musí by» èíslo\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "nepodarilo sa otvori» %s: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -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 <primoz.peterlin@biofiz.mf.uni-lj.si>, 2000. -# $Id: sl.po,v 1.88 2000/07/29 17:30:21 jbj Exp $ +# $Id: sl.po,v 1.89 2000/07/29 20:31:58 jbj Exp $ # msgid "" msgstr "" "Project-Id-Version: rpm 3.0.4\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-02-17 22:25+01:00\n" "Last-Translator: Primo¾ Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>\n" "Language-Team: Slovenian <sl@li.org>\n" @@ -2410,21 +2410,17 @@ msgstr "okvarjeno stanje datoteke: %s" msgid "opening db file %s mode 0x%x\n" msgstr "odpiramo datoteko z naèinom 0x%x v %s\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "neuspe¹no odpiranje %s: %s\n" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "datoteke ni mo¾no %s zakleniti" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "izkljuèujoèe" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "deljeno" @@ -3994,6 +3990,11 @@ msgstr "napaka: vrata %s morajo biti ¹tevilka\n" msgid "url port must be a number\n" msgstr "vrata URL morajo biti ¹tevilka\n" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "neuspe¹no odpiranje %s: %s\n" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "Content-Type: text/plain; charset=\n" "Date: 1998-05-02 21:41:47-0400\n" "From: Erik Troan <ewt@lacrosse.redhat.com>\n" @@ -2430,21 +2430,17 @@ msgstr "neuspelo otvaranje %s: %s" msgid "opening db file %s mode 0x%x\n" msgstr "rekreiraj bazu podataka iz postojeæe baze" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "neuspelo otvaranje %s: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "ne mogu da dobijem %s zakljuèavanje baze podataka" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "ekskluzivno" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "deljeno" @@ -4052,6 +4048,11 @@ msgstr "gre¹ka: FTP port mora biti broj\n" msgid "url port must be a number\n" msgstr "gre¹ka: FTP port mora biti broj\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "neuspelo otvaranje %s: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-0400\n" "PO-Revision-Date: 2000-07-24 22:14+0200\n" "Last-Translator: Göran Uddeborg <göran@uddeborg.pp.se>\n" "Language-Team: Swedish <sv@li.org>\n" @@ -2319,21 +2319,17 @@ msgstr "felaktig db-fil %s" msgid "opening db file %s mode 0x%x\n" msgstr "öppnar db-fil %s rättighet 0x%x\n" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "kunde inte öppna %s: %s\n" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "kan inte få %s lås på databas" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "uteslutande" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "delat" @@ -3914,6 +3910,11 @@ msgstr "fel: %s-port måste vara ett tal\n" msgid "url port must be a number\n" msgstr "url-port måste vara ett tal\n" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "kunde inte öppna %s: %s\n" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2472,21 +2472,17 @@ msgstr "%s açýlamadý: %s" msgid "opening db file %s mode 0x%x\n" msgstr "mevcut veritabanýný kullanýlarak veritabýnýný yeniden oluþturur" -#: lib/db1.c:435 rpmio/url.c:445 -#, fuzzy, c-format -msgid "failed to open %s: %s\n" -msgstr "%s açýlamadý: %s" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "Veritabaný için %s kilit (lock) alýnamadý" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "özel" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "paylaþýlan (shared)" @@ -4098,6 +4094,11 @@ msgstr "hata: ftpport bir sayý olmalý\n" msgid "url port must be a number\n" msgstr "hata: ftpport bir sayý olmalý\n" +#: rpmio/url.c:445 +#, fuzzy, c-format +msgid "failed to open %s: %s\n" +msgstr "%s açýlamadý: %s" + #. XXX Fstrerror #: rpmio/url.c:462 #, fuzzy, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format diff --git a/po/zh_CN.GB2312.po b/po/zh_CN.GB2312.po index 19aae58de..4152a8229 100644 --- a/po/zh_CN.GB2312.po +++ b/po/zh_CN.GB2312.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-29 13:25-0400\n" +"POT-Creation-Date: 2000-07-29 16:29-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" @@ -2273,21 +2273,17 @@ msgstr "" msgid "opening db file %s mode 0x%x\n" msgstr "" -#: lib/db1.c:435 rpmio/url.c:445 -#, c-format -msgid "failed to open %s: %s\n" -msgstr "" - -#: lib/db1.c:451 +#. XXX check errno validity +#: lib/db1.c:449 #, c-format msgid "cannot get %s lock on database" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "exclusive" msgstr "" -#: lib/db1.c:452 lib/db3.c:1097 +#: lib/db1.c:450 lib/db3.c:1097 msgid "shared" msgstr "" @@ -3831,6 +3827,11 @@ msgstr "" msgid "url port must be a number\n" msgstr "" +#: rpmio/url.c:445 +#, c-format +msgid "failed to open %s: %s\n" +msgstr "" + #. XXX Fstrerror #: rpmio/url.c:462 #, c-format diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 63d02305d..e73e9746f 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -28,6 +28,8 @@ typedef struct hdrObject_s hdrObject; /* rpmdb functions */ static void rpmdbDealloc(rpmdbObject * s); +static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args); +static PyObject * rpmdbNext(rpmdbObject * s, PyObject * args); static PyObject * rpmdbGetAttr(rpmdbObject * s, char * name); static PyObject * rpmdbByName(rpmdbObject * s, PyObject * args); static PyObject * rpmdbByProvides(rpmdbObject * s, PyObject * args); @@ -92,6 +94,9 @@ static void mungeFilelist(Header h); struct rpmdbObject_s { PyObject_HEAD; rpmdb db; + int offx; + int noffs; + int *offsets; } ; struct rpmdbMIObject_s { @@ -233,6 +238,8 @@ static PyTypeObject rpmtransType = { }; static struct PyMethodDef rpmdbMethods[] = { + {"firstkey", (PyCFunction) rpmdbFirst, 1 }, + {"nextkey", (PyCFunction) rpmdbNext, 1 }, {"findbyfile", (PyCFunction) rpmdbByFile, 1 }, {"findbyname", (PyCFunction) rpmdbByName, 1 }, {"findbyprovides", (PyCFunction) rpmdbByProvides, 1 }, @@ -550,6 +557,9 @@ static rpmdbObject * rpmOpenDB(PyObject * self, PyObject * args) { o = PyObject_NEW(rpmdbObject, &rpmdbType); o->db = NULL; + o->offx = 0; + o->noffs = 0; + o->offsets = NULL; if (rpmdbOpen(root, &o->db, forWrite ? O_RDWR | O_CREAT: O_RDONLY, 0644)) { char * errmsg = "cannot open database in %s"; @@ -817,11 +827,71 @@ static PyObject * rpmdbGetAttr(rpmdbObject * s, char * name) { } static void rpmdbDealloc(rpmdbObject * s) { + if (s->offsets) { + free(s->offsets); + } if (s->db) { rpmdbClose(s->db); } } +static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args) { + int first; + + if (!PyArg_ParseTuple (args, "")) return NULL; + + /* Acquire all offsets in one fell swoop. */ + if (s->offsets == NULL || s->noffs <= 0) { + rpmdbMatchIterator mi; + Header h; + + if (s->offsets) + free(s->offsets); + s->offsets = NULL; + s->noffs = 0; + mi = rpmdbInitIterator(s->db, RPMDBI_PACKAGES, NULL, 0); + while ((h = rpmdbNextIterator(mi)) != NULL) { + s->noffs++; + s->offsets = realloc(s->offsets, s->noffs * sizeof(s->offsets[0])); + s->offsets[s->noffs-1] = rpmdbGetIteratorOffset(mi); + } + rpmdbFreeIterator(mi); + } + + s->offx = 0; + if (s->offsets != NULL && s->offx < s->noffs) + first = s->offsets[s->offx++]; + else + first = 0; + + if (!first) { + PyErr_SetString(pyrpmError, "cannot find first entry in database\n"); + return NULL; + } + + return Py_BuildValue("i", first); +} + +static PyObject * rpmdbNext(rpmdbObject * s, PyObject * args) { + int where; + + if (!PyArg_ParseTuple (args, "i", &where)) return NULL; + + if (s->offsets == NULL || s->offx >= s->noffs) { + Py_INCREF(Py_None); + return Py_None; + } + + where = s->offsets[s->offx++]; + + if (!where) { + Py_INCREF(Py_None); + return Py_None; + } + + return Py_BuildValue("i", where); +} + static PyObject * handleDbResult(rpmdbMatchIterator mi) { PyObject * list; @@ -8,7 +8,7 @@ Summary: The Red Hat package management system. Name: rpm %define version 4.0 Version: %{version} -Release: 0.61 +Release: 0.62 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-%{version}.tar.gz Copyright: GPL @@ -264,6 +264,7 @@ fi * Sat Jul 29 2000 Jeff Johnson <jbj@redhat.com> - bail on firstkey/nextkey, there's a better way. - link rpm2cpio dynamically since cpio is linked dynamically. +- re-resurrect firstkey/nextkey python bindings for up2date compatibility. * Fri Jul 28 2000 Jeff Johnson <jbj@redhat.com> - resurrect firstkey/nextkey python bindings. |