[Yum-devel] [PATCH] : Make a RPMBaseCallback class to reduce duplicated code.
seth vidal
skvidal at fedoraproject.org
Tue Aug 14 13:16:51 UTC 2007
On Tue, 2007-08-14 at 15:05 +0200, Tim Lauridsen wrote:
> seth vidal wrote:
> > On Tue, 2007-08-14 at 11:26 +0200, Tim Lauridsen wrote:
> >
> > > I have made a RPMBaseCallback class in rpmtrans.py to reduce duplicated
> > > code and make it easier to a lazy yum api user to create a
> > > RPMCallback handler. :-)
> > >
> > >
> >
> > Hi Tim,
> > that looks good - go ahead and commit it.
> >
> > thanks,
> > -sv
> >
> >
> > _______________________________________________
> > Yum-devel mailing list
> > Yum-devel at linux.duke.edu
> > https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
> >
> Committed.
> I have some problems with the importing from yum.rpmtrans from a yum
> api program.
> if is caused by the 'from i18n import _' line.
> The i18n is not available from the yum module, only if running in
> yum-cli directory will make it work, because it contains a i18n.py.
>
> [tim at localhost yumguicore]$ python
> Python 2.5 (r25:51908, Apr 10 2007, 10:27:40)
> [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from yum.rpmtrans import RPMTransaction
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/data/udv/git/yumguicore/yum/rpmtrans.py", line 25, in
> <module>
> from i18n import _
> ImportError: No module named i18n
> >>>
>
>
> how do we solve this one ?
> 2) remove the 'from i18n import _' line from rpmtrans.py (it is not
> used yet).
this one. It's just a leftover I missed when I was cleaning up.
when we start translating again we can add these things back in
properly.
-sv
More information about the Yum-devel
mailing list