- python: add (optional) ts.check() callback.

CVS patchset: 5619
CVS date: 2002/08/09 22:25:04
This commit is contained in:
jbj 2002-08-09 22:25:04 +00:00
parent c961f3f78e
commit 7937158c01
37 changed files with 186 additions and 88 deletions

View File

@ -229,6 +229,7 @@
- fix: src.rpm installs need fd pos at payload. - fix: src.rpm installs need fd pos at payload.
- python: add return codes for rollbacks and fooDB methods. - python: add return codes for rollbacks and fooDB methods.
- avoid generating fingerprints for locale/zoneinfo sub-directories. - avoid generating fingerprints for locale/zoneinfo sub-directories.
- python: add (optional) ts.check() callback.
4.0.3 -> 4.0.4: 4.0.3 -> 4.0.4:
- solaris: translate i86pc to i386 (#57182). - solaris: translate i86pc to i386 (#57182).

View File

@ -502,7 +502,7 @@ static int unsatisfiedDepend(rpmts ts, rpmds dep, int adding)
/*@-boundsread@*/ /*@-boundsread@*/
if (adding && !(rpmtsFlags(ts) & RPMTRANS_FLAG_NOSUGGEST)) { if (adding && !(rpmtsFlags(ts) & RPMTRANS_FLAG_NOSUGGEST)) {
if (ts->solve != NULL) if (ts->solve != NULL)
xx = (*ts->solve) (ts, dep); xx = (*ts->solve) (ts, dep, ts->solveData);
} }
/*@=boundsread@*/ /*@=boundsread@*/

View File

@ -341,7 +341,7 @@ static int sugcmp(const void * a, const void * b)
} }
/*@-bounds@*/ /*@-bounds@*/
int rpmtsSolve(rpmts ts, rpmds ds) int rpmtsSolve(rpmts ts, rpmds ds, /*@unused@*/ const void * data)
{ {
const char * errstr; const char * errstr;
const char * str; const char * str;
@ -464,6 +464,18 @@ int rpmtsAvailable(rpmts ts, const rpmds ds)
/*@=nullstate@*/ /*@=nullstate@*/
} }
int rpmtsSetSolveCallback(rpmts ts,
int (*solve) (rpmts ts, rpmds key, const void * data),
const void * solveData)
{
int rc = 0;
if (ts) {
ts->solve = solve;
ts->solveData = solveData;
}
return rc;
}
rpmps rpmtsProblems(rpmts ts) rpmps rpmtsProblems(rpmts ts)
{ {
rpmps ps = NULL; rpmps ps = NULL;
@ -1043,6 +1055,7 @@ rpmts rpmtsCreate(void)
ts->dsi = NULL; ts->dsi = NULL;
ts->solve = rpmtsSolve; ts->solve = rpmtsSolve;
ts->solveData = NULL;
ts->nsuggests = 0; ts->nsuggests = 0;
ts->suggests = NULL; ts->suggests = NULL;
ts->sdb = NULL; ts->sdb = NULL;

View File

@ -112,8 +112,9 @@ struct rpmts_s {
rpmdb sdb; /*!< Solve database handle. */ rpmdb sdb; /*!< Solve database handle. */
int sdbmode; /*!< Solve database open mode. */ int sdbmode; /*!< Solve database open mode. */
/*@null@*/ /*@null@*/
int (*solve) (rpmts ts, const rpmds key) int (*solve) (rpmts ts, rpmds key, const void * data)
/*@modifies ts @*/; /*!< Search for NEVRA key. */ /*@modifies ts @*/; /*!< Search for NEVRA key. */
const void * solveData; /*!< Solve callback data */
int nsuggests; /*!< No. of depCheck suggestions. */ int nsuggests; /*!< No. of depCheck suggestions. */
/*@only@*/ /*@null@*/ /*@only@*/ /*@null@*/
const void ** suggests; /*!< Possible depCheck suggestions. */ const void ** suggests; /*!< Possible depCheck suggestions. */
@ -370,13 +371,14 @@ int rpmtsOpenSDB(rpmts ts, int dbmode)
/*@=exportlocal@*/ /*@=exportlocal@*/
/** /**
* Attempt to solve a needed dependency using the solve database.. * Attempt to solve a needed dependency using the solve database.
* @param ts transaction set * @param ts transaction set
* @param ds dependency set * @param ds dependency set
* @return 0 if resolved (and added to ts), 1 not found * @param data opaque data associated with callback
* @return 0 if resolved, 1 not found
*/ */
/*@-exportlocal@*/ /*@-exportlocal@*/
int rpmtsSolve(rpmts ts, rpmds ds) int rpmtsSolve(rpmts ts, rpmds ds, const void * data)
/*@globals rpmGlobalMacroContext, fileSystem, internalState @*/ /*@globals rpmGlobalMacroContext, fileSystem, internalState @*/
/*@modifies ts, rpmGlobalMacroContext, fileSystem, internalState @*/; /*@modifies ts, rpmGlobalMacroContext, fileSystem, internalState @*/;
/*@=exportlocal@*/ /*@=exportlocal@*/
@ -393,6 +395,18 @@ int rpmtsAvailable(rpmts ts, const rpmds ds)
/*@globals fileSystem @*/ /*@globals fileSystem @*/
/*@modifies ts, fileSystem @*/; /*@modifies ts, fileSystem @*/;
/**
* Set dependency solver callback.
* @param ts transaction set
* @param (*solve) dependency solver callback
* @param solveData dependency solver callback data (opaque)
* @return 0 on success
*/
int rpmtsSetSolveCallback(rpmts ts,
int (*solve) (rpmts ts, rpmds ds, const void * data),
const void * solveData)
/*@modifies ts @*/;
/** /**
* Return current transaction set problems. * Return current transaction set problems.
* @param ts transaction set * @param ts transaction set

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-07-24 10:02+0100\n" "PO-Revision-Date: 2001-07-24 10:02+0100\n"
"Last-Translator: Milan Kerslager <kerslage@linux.cz>\n" "Last-Translator: Milan Kerslager <kerslage@linux.cz>\n"
"Language-Team: Czech <cs@li.org>\n" "Language-Team: Czech <cs@li.org>\n"
@ -2811,7 +2811,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "nemohu otevøít RPM databázi v %s\n" msgstr "nemohu otevøít RPM databázi v %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "získávám seznam pøipojených systémù souborù\n" msgstr "získávám seznam pøipojených systémù souborù\n"

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-04-05 23:03GMT\n" "PO-Revision-Date: 2001-04-05 23:03GMT\n"
"Last-Translator: Claus Hindsgaul <claus_h@image.dk>\n" "Last-Translator: Claus Hindsgaul <claus_h@image.dk>\n"
"Language-Team: Danish <dansk@klid.dk>\n" "Language-Team: Danish <dansk@klid.dk>\n"
@ -2828,7 +2828,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "kan ikke åbne rpm-database i %s\n" msgstr "kan ikke åbne rpm-database i %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "henter liste over monterede filsystemer\n" msgstr "henter liste over monterede filsystemer\n"

View File

@ -37,7 +37,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 1998-08-03 18:02+02:00\n" "PO-Revision-Date: 1998-08-03 18:02+02:00\n"
"Last-Translator: Karl Eichwalder <ke@SuSE.DE>\n" "Last-Translator: Karl Eichwalder <ke@SuSE.DE>\n"
"Language-Team: German <de@li.org>\n" "Language-Team: German <de@li.org>\n"
@ -3001,7 +3001,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "Fehler: kann nicht öffnen %s%s/packages.rpm\n" msgstr "Fehler: kann nicht öffnen %s%s/packages.rpm\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"Last-Translator: Raimo Koski <rkoski@pp.weppi.fi>\n" "Last-Translator: Raimo Koski <rkoski@pp.weppi.fi>\n"
"Language-Team: Finnish <linux@sot.com>\n" "Language-Team: Finnish <linux@sot.com>\n"
"Content-Type: text/plain; charset=\n" "Content-Type: text/plain; charset=\n"
@ -2864,7 +2864,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "virhe: en voi avata %s%s/packages.rpm\n" msgstr "virhe: en voi avata %s%s/packages.rpm\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2905,7 +2905,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "impossible d'ouvrir: %s\n" msgstr "impossible d'ouvrir: %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.1\n" "Project-Id-Version: rpm 4.0.1\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-01-13 22:31+0100\n" "PO-Revision-Date: 2001-01-13 22:31+0100\n"
"Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n" "Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n"
"Language-Team: Galician <trasno@ceu.fi.udc.es>\n" "Language-Team: Galician <trasno@ceu.fi.udc.es>\n"
@ -2726,7 +2726,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-07-12 13:25+0000\n" "PO-Revision-Date: 2001-07-12 13:25+0000\n"
"Last-Translator: Richard Allen <ra@hp.is>\n" "Last-Translator: Richard Allen <ra@hp.is>\n"
"Language-Team: is <kde-isl@mmedia.is>\n" "Language-Team: is <kde-isl@mmedia.is>\n"
@ -2754,7 +2754,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "get ekki opnað pakka gagnagrunn í %s\n" msgstr "get ekki opnað pakka gagnagrunn í %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 1999-12-01 22:49 +JST\n" "PO-Revision-Date: 1999-12-01 22:49 +JST\n"
"Last-Translator: Kanda Mitsuru <kanda@nn.iij4u.or.jp>\n" "Last-Translator: Kanda Mitsuru <kanda@nn.iij4u.or.jp>\n"
"Language-Team: JRPM <jrpm@linux.or.jp>\n" "Language-Team: JRPM <jrpm@linux.or.jp>\n"
@ -2914,7 +2914,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "%s/packages.rpm をオープンできません\n" msgstr "%s/packages.rpm をオープンできません\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "マウントされたファイルシステムのリストを取得しています\n" msgstr "マウントされたファイルシステムのリストを取得しています\n"

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.4\n" "Project-Id-Version: rpm 4.0.4\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2002-03-04 17:17+0900\n" "PO-Revision-Date: 2002-03-04 17:17+0900\n"
"Last-Translator: Jong-Hoon Ryu <redhat4u@netian.com>\n" "Last-Translator: Jong-Hoon Ryu <redhat4u@netian.com>\n"
"Language-Team: GNU Translation project <ko@li.org>\n" "Language-Team: GNU Translation project <ko@li.org>\n"
@ -2805,7 +2805,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "%s의 rpm 데이터베이스를 열 수 없습니다\n" msgstr "%s의 rpm 데이터베이스를 열 수 없습니다\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-06-27 12:24+0200\n" "PO-Revision-Date: 2001-06-27 12:24+0200\n"
"Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n" "Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n"
"Language-Team: Norwegian <no@li.org>\n" "Language-Team: Norwegian <no@li.org>\n"
@ -2784,7 +2784,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "kan ikke åpne database i %s\n" msgstr "kan ikke åpne database i %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "henter liste over monterte filsystemer\n" msgstr "henter liste over monterte filsystemer\n"

View File

@ -8,7 +8,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 1999-05-25 17:00+0100\n" "PO-Revision-Date: 1999-05-25 17:00+0100\n"
"Last-Translator: Pawe³ Dziekoñski <pdziekonski@mml.ch.pwr.wroc.pl>\n" "Last-Translator: Pawe³ Dziekoñski <pdziekonski@mml.ch.pwr.wroc.pl>\n"
"Language-Team: Polish <pl@li.org>\n" "Language-Team: Polish <pl@li.org>\n"
@ -2868,7 +2868,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "nie mo¿na otworzyæ %s/packages.rpm\n" msgstr "nie mo¿na otworzyæ %s/packages.rpm\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm\n" "Project-Id-Version: rpm\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2002-02-14 10:51+0000\n" "PO-Revision-Date: 2002-02-14 10:51+0000\n"
"Last-Translator: José Nuno Coelho Sanarra Pires <jncp@rnl.ist.utl.pt>\n" "Last-Translator: José Nuno Coelho Sanarra Pires <jncp@rnl.ist.utl.pt>\n"
"Language-Team: pt <morais@kde.org\n" "Language-Team: pt <morais@kde.org\n"
@ -2814,7 +2814,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "não consigo a base de dados do RPM em %s\n" msgstr "não consigo a base de dados do RPM em %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -4,7 +4,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
#: build.c:40 #: build.c:40
#, fuzzy #, fuzzy
@ -3049,7 +3049,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "No consegui abrir: %s\n" msgstr "No consegui abrir: %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 1999-04-10 12:00+EST\n" "PO-Revision-Date: 1999-04-10 12:00+EST\n"
"Last-Translator: Cristian Gafton <gafton@redhat.com>\n" "Last-Translator: Cristian Gafton <gafton@redhat.com>\n"
"Language-Team: Romanian <ro@li.org>\n" "Language-Team: Romanian <ro@li.org>\n"
@ -2726,7 +2726,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2732,7 +2732,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2002-04-09 16:44-0400\n" "PO-Revision-Date: 2002-04-09 16:44-0400\n"
"Last-Translator: Eugene Kanter, <eugene@bcl.bz>\n" "Last-Translator: Eugene Kanter, <eugene@bcl.bz>\n"
"Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n" "Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n"
@ -2813,7 +2813,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "ÎÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ÂÁÚÕ ÄÁÎÎÙÈ RPM × %s\n" msgstr "ÎÅ×ÏÚÍÏÖÎÏ ÏÔËÒÙÔØ ÂÁÚÕ ÄÁÎÎÙÈ RPM × %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 1999-04-08 21:37+02:00\n" "PO-Revision-Date: 1999-04-08 21:37+02:00\n"
"Last-Translator: Stanislav Meduna <stano@eunet.sk>\n" "Last-Translator: Stanislav Meduna <stano@eunet.sk>\n"
"Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n" "Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n"
@ -2864,7 +2864,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "nie je mo¾né otvori» %s/packages.rpm\n" msgstr "nie je mo¾né otvori» %s/packages.rpm\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,12 +1,12 @@
# -*- mode:po; coding:iso-latin-2; -*- Slovenian messages for Redhat pkg. mngr. # -*- mode:po; coding:iso-latin-2; -*- Slovenian messages for Redhat pkg. mngr.
# Copyright (C) 2000 Free Software Foundation, Inc. # Copyright (C) 2000 Free Software Foundation, Inc.
# Primo¾ Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>, 2000. # Primo¾ Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>, 2000.
# $Id: sl.po,v 1.309 2002/08/08 22:21:11 jbj Exp $ # $Id: sl.po,v 1.310 2002/08/09 22:26:04 jbj Exp $
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2000-10-08 19:05+0200\n" "PO-Revision-Date: 2000-10-08 19:05+0200\n"
"Last-Translator: Grega Fajdiga <gregor.fajdiga@telemach.net>\n" "Last-Translator: Grega Fajdiga <gregor.fajdiga@telemach.net>\n"
"Language-Team: Slovenian <sl@li.org>\n" "Language-Team: Slovenian <sl@li.org>\n"
@ -2867,7 +2867,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "datoteke %s/packages.rpm ni mogo¾no odpreti\n" msgstr "datoteke %s/packages.rpm ni mogo¾no odpreti\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "zbiranje seznama priklopljenih datoteènih sistemov.\n" msgstr "zbiranje seznama priklopljenih datoteènih sistemov.\n"

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"Content-Type: text/plain; charset=\n" "Content-Type: text/plain; charset=\n"
"Date: 1998-05-02 21:41:47-0400\n" "Date: 1998-05-02 21:41:47-0400\n"
@ -2855,7 +2855,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "gre¹ka: ne mogu da otvorim %s%s/packages.rpm\n" msgstr "gre¹ka: ne mogu da otvorim %s%s/packages.rpm\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.1\n" "Project-Id-Version: rpm 4.1\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2002-07-11 22:49+0200\n" "PO-Revision-Date: 2002-07-11 22:49+0200\n"
"Last-Translator: Göran Uddeborg <goeran@uddeborg.pp.se>\n" "Last-Translator: Göran Uddeborg <goeran@uddeborg.pp.se>\n"
"Language-Team: Swedish <sv@li.org>\n" "Language-Team: Swedish <sv@li.org>\n"
@ -2771,7 +2771,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "kan inte öppna paketdatabas i %s\n" msgstr "kan inte öppna paketdatabas i %s\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "hämtar lista över monterade filsystem\n" msgstr "hämtar lista över monterade filsystem\n"

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: 2001-07-05 08:02+300\n" "PO-Revision-Date: 2001-07-05 08:02+300\n"
"Last-Translator: Nilgun Belma Buguner <nilgun@technologist.com>\n" "Last-Translator: Nilgun Belma Buguner <nilgun@technologist.com>\n"
"Language-Team: Turkish <tr@li.org>\n" "Language-Team: Turkish <tr@li.org>\n"
@ -2827,7 +2827,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "%s dizininde rpm veritabanıılamıyor\n" msgstr "%s dizininde rpm veritabanıılamıyor\n"
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "bağlı dosya sistemlerinin listesi alınıyor\n" msgstr "bağlı dosya sistemlerinin listesi alınıyor\n"

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: rpm 4.0.3\n" "Project-Id-Version: rpm 4.0.3\n"
"POT-Creation-Date: 2002-08-08 18:03-0400\n" "POT-Creation-Date: 2002-08-09 18:19-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2731,7 +2731,7 @@ msgid "cannot open Solve database in %s\n"
msgstr "" msgstr ""
#. Get available space on mounted file systems. #. Get available space on mounted file systems.
#: lib/rpmts.c:797 #: lib/rpmts.c:809
msgid "getting list of mounted filesystems\n" msgid "getting list of mounted filesystems\n"
msgstr "" msgstr ""

View File

@ -12,9 +12,9 @@
#include <rpmcli.h> #include <rpmcli.h>
#include <rpmpgp.h> #include <rpmpgp.h>
#include <rpmdb.h>
#include "header-py.h" #include "header-py.h"
#include "rpmdb-py.h"
#include "rpmds-py.h" /* XXX for rpmdsNew */ #include "rpmds-py.h" /* XXX for rpmdsNew */
#include "rpmfi-py.h" /* XXX for rpmfiNew */ #include "rpmfi-py.h" /* XXX for rpmfiNew */
#include "rpmmi-py.h" #include "rpmmi-py.h"
@ -142,6 +142,16 @@ static int _rpmts_debug = 0;
* - rpm.RPMPROB_FILTER_DISKSPACE - * - rpm.RPMPROB_FILTER_DISKSPACE -
*/ */
/** \ingroup python
*/
struct rpmtsCallbackType_s {
PyObject * cb;
PyObject * data;
rpmtsObject * tso;
int pythonError;
PyThreadState *_save;
};
/** \ingroup python /** \ingroup python
*/ */
static PyObject * static PyObject *
@ -265,6 +275,43 @@ fprintf(stderr, "*** rpmts_AddErase(%p) ts %p\n", s, s->ts);
return Py_None; return Py_None;
} }
/** \ingroup python
*/
static int
rpmts_SolveCallback(rpmts ts, rpmds ds, void * data)
/*@*/
{
struct rpmtsCallbackType_s * cbInfo = data;
PyObject * args, * result;
int res = 1;
if (_rpmts_debug)
fprintf(stderr, "*** rpmts_SolveCallback(%p,%p,%p) %s\n", ts, ds, data, rpmdsDNEVR(ds));
if (cbInfo->tso == NULL) return res;
if (cbInfo->pythonError) return res;
if (cbInfo->cb == Py_None) return res;
PyEval_RestoreThread(cbInfo->_save);
args = Py_BuildValue("(Oissi)", cbInfo->tso,
rpmdsTagN(ds), rpmdsN(ds), rpmdsEVR(ds), rpmdsFlags(ds));
result = PyEval_CallObject(cbInfo->cb, args);
Py_DECREF(args);
if (!result) {
cbInfo->pythonError = 1;
} else {
if (PyInt_Check(result))
res = PyInt_AsLong(result);
Py_DECREF(result);
}
cbInfo->_save = PyEval_SaveThread();
return res;
}
/** \ingroup python /** \ingroup python
*/ */
static PyObject * static PyObject *
@ -275,20 +322,40 @@ rpmts_Check(rpmtsObject * s, PyObject * args)
rpmps ps; rpmps ps;
rpmProblem p; rpmProblem p;
PyObject * list, * cf; PyObject * list, * cf;
struct rpmtsCallbackType_s cbInfo;
int i; int i;
int allSuggestions = 0;
int xx; int xx;
pemset(&cbInfo, 0, sizeof(cbInfo));
if (!PyArg_ParseTuple(args, "|O:Check", &cbInfo.cb))
return NULL;
if (cbInfo.cb != NULL) {
if (!PyCallable_Check(cbInfo.cb)) {
PyErr_SetString(PyExc_TypeError, "expected a callable");
return NULL;
}
xx = rpmtsSetSolveCallback(s->ts, rpmts_SolveCallback, (void *)&cbInfo);
}
if (_rpmts_debug) if (_rpmts_debug)
fprintf(stderr, "*** rpmts_Check(%p) ts %p\n", s, s->ts); fprintf(stderr, "*** rpmts_Check(%p) ts %p cb %p\n", s, s->ts, cbInfo.cb);
if (!PyArg_ParseTuple(args, "|i:Check", &allSuggestions)) return NULL; cbInfo.tso = s;
cbInfo.pythonError = 0;
cbInfo._save = PyEval_SaveThread();
if (cbInfo.cb)
Py_BEGIN_ALLOW_THREADS
xx = rpmtsCheck(s->ts); xx = rpmtsCheck(s->ts);
ps = rpmtsProblems(s->ts); ps = rpmtsProblems(s->ts);
Py_END_ALLOW_THREADS
if (cbInfo.cb) {
xx = rpmtsSetSolveCallback(s->ts, rpmtsSolve, NULL);
}
PyEval_RestoreThread(cbInfo._save);
if (ps) { if (ps) {
list = PyList_New(0); list = PyList_New(0);
@ -830,15 +897,6 @@ fprintf(stderr, "*** rpmts_GetKeys(%p) ts %p\n", s, s->ts);
return tuple; return tuple;
} }
/** \ingroup python
*/
struct rpmtsCallbackType_s {
PyObject * cb;
PyObject * data;
int pythonError;
PyThreadState *_save;
};
/** \ingroup python /** \ingroup python
*/ */
static void * static void *
@ -916,19 +974,30 @@ static PyObject * rpmts_Run(rpmtsObject * s, PyObject * args)
&cbInfo.data)) &cbInfo.data))
return NULL; return NULL;
cbInfo.tso = s;
cbInfo.pythonError = 0; cbInfo.pythonError = 0;
cbInfo._save = PyEval_SaveThread(); cbInfo._save = PyEval_SaveThread();
if (cbInfo.cb != NULL) {
if (!PyCallable_Check(cbInfo.cb)) {
PyErr_SetString(PyExc_TypeError, "expected a callable");
return NULL;
}
(void) rpmtsSetNotifyCallback(s->ts, rpmtsCallback, (void *) &cbInfo); (void) rpmtsSetNotifyCallback(s->ts, rpmtsCallback, (void *) &cbInfo);
}
(void) rpmtsSetFlags(s->ts, flags); (void) rpmtsSetFlags(s->ts, flags);
if (_rpmts_debug) if (_rpmts_debug)
fprintf(stderr, "*** rpmts_Run(%p) ts %p flags %x ignore %x\n", s, s->ts, s->ts->transFlags, ignoreSet); fprintf(stderr, "*** rpmts_Run(%p) ts %p flags %x ignore %x\n", s, s->ts, s->ts->transFlags, ignoreSet);
rc = rpmtsRun(s->ts, NULL, ignoreSet); rc = rpmtsRun(s->ts, NULL, ignoreSet);
ps = rpmtsProblems(s->ts); ps = rpmtsProblems(s->ts);
if (cbInfo.cb) {
(void) rpmtsSetNotifyCallback(s->ts, NULL, NULL);
}
PyEval_RestoreThread(cbInfo._save); PyEval_RestoreThread(cbInfo._save);
if (cbInfo.pythonError) { if (cbInfo.pythonError) {

View File

@ -517,9 +517,10 @@ fi
%{__prefix}/include/popt.h %{__prefix}/include/popt.h
%changelog %changelog
* Thu Aug 8 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.76 * Fri Aug 9 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.76
- python: add return codes for rollbacks and fooDB methods. - python: add return codes for rollbacks and fooDB methods.
- avoid generating fingerprints for locale/zoneinfo sub-directories. - avoid generating fingerprints for locale/zoneinfo sub-directories.
- python: add (optional) ts.check() callback.
* Wed Aug 7 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.75 * Wed Aug 7 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.75
- fix: src.rpm installs need fd pos at payload. - fix: src.rpm installs need fd pos at payload.