[Yum] yum error before upgrade of Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 30. Juni 2005 09:52 schrieb seth vidal:
> >
> > Seth, what do you think?
>
> I think that the whole reason for catching the import exception was
> to avoid printing the traceback. So putting it back in seems a bit
> backward to me.
>
> Now if you were to modify that to point out the specific import
> modules that failed to import and print that information nicely, then
> that might be merged.

Understood, how about this:

--- bin/yum.py.orig	2005-06-30 09:26:32.296304798 +0200
+++ bin/yum.py	2005-06-30 10:08:45.730858194 +0200
@@ -3,10 +3,15 @@
 try:
    import yum
 except ImportError:
-   print >> sys.stderr, "The yum libraries do not seem to be available \
-on your system for this version of python ", sys.version
-   print >> sys.stderr, "Please make sure the package you used to install \
-yum was built for your install of python."
+   print >> sys.stderr, """\
+The yum libraries do not seem to be available on your system
+for this version of python: %s
+
+Please make sure the package you used to install yum was built
+for your install of python. 
+
+The error leading to this problem was: %s
+""" % (sys.version, sys.exc_value)
    sys.exit(1)
 
 sys.path.insert(0, '/usr/share/yum-cli')

Pete

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux