Bug 808130 - yum-presto prevents from updating F17: "bad operand type for unary -: 'str'" , yummain.py", line 321 , "/usr/lib/yum-plugins/presto.py", line 198
Summary: yum-presto prevents from updating F17: "bad operand type for unary -: 'str'" ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-presto
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jonathan Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 771573 808177 808241 808288 808312 808343 808381 808564 808595 808607 808700 809031 809879 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-29 16:25 UTC by Joachim Backes
Modified: 2012-04-12 03:20 UTC (History)
20 users (show)

Fixed In Version: yum-presto-0.7.3-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 808288 (view as bug list)
Environment:
Last Closed: 2012-04-12 03:20:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Backes 2012-03-29 16:25:43 UTC
Description of problem:
Unable to run "yum update" for the moment:

sudo yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mesa-dri-drivers.i686 0:8.0.1-7.fc17 will be updated
---> Package mesa-dri-drivers.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-dri-drivers.i686 0:8.0.1-9.fc17 will be an update
---> Package mesa-dri-drivers.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-dri-filesystem.i686 0:8.0.1-7.fc17 will be updated
---> Package mesa-dri-filesystem.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-dri-filesystem.i686 0:8.0.1-9.fc17 will be an update
---> Package mesa-dri-filesystem.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGL.i686 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGL.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGL.i686 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGL.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGL-devel.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGL-devel.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLES.i686 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLES.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLES.i686 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLES.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLU.i686 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLU.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLU.i686 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLU.x86_64 0:8.0.1-9.fc17 will be an update
---> Package mesa-libGLU-devel.x86_64 0:8.0.1-7.fc17 will be updated
---> Package mesa-libGLU-devel.x86_64 0:8.0.1-9.fc17 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================
 Package                                    Arch                          Version                               Repository                     Size
====================================================================================================================================================
Updating:
 mesa-dri-drivers                           i686                          8.0.1-9.fc17                          fedora                         12 M
 mesa-dri-drivers                           x86_64                        8.0.1-9.fc17                          fedora                         11 M
 mesa-dri-filesystem                        i686                          8.0.1-9.fc17                          fedora                         23 k
 mesa-dri-filesystem                        x86_64                        8.0.1-9.fc17                          fedora                         23 k
 mesa-libGL                                 i686                          8.0.1-9.fc17                          fedora                        147 k
 mesa-libGL                                 x86_64                        8.0.1-9.fc17                          fedora                        147 k
 mesa-libGL-devel                           x86_64                        8.0.1-9.fc17                          fedora                        472 k
 mesa-libGLES                               i686                          8.0.1-9.fc17                          fedora                         39 k
 mesa-libGLES                               x86_64                        8.0.1-9.fc17                          fedora                         39 k
 mesa-libGLU                                i686                          8.0.1-9.fc17                          fedora                        185 k
 mesa-libGLU                                x86_64                        8.0.1-9.fc17                          fedora                        179 k
 mesa-libGLU-devel                          x86_64                        8.0.1-9.fc17                          fedora                         90 k

Transaction Summary
====================================================================================================================================================
Upgrade  12 Packages

Total download size: 24 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 321, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 229, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 547, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) 
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2147, in downloadPkgs
    self.plugins.run('predownload', pkglist=pkglist)
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 187, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/presto.py", line 633, in predownload_hook
    (problems, more) = downloadPkgs(conduit, pinfo, download_pkgs)
  File "/usr/lib/yum-plugins/presto.py", line 321, in downloadPkgs
    delta = getDelta(po, presto, conduit, conf_mp)
  File "/usr/lib/yum-plugins/presto.py", line 198, in getDelta
    conduit.info(5, -("Could not find delta rpm for package %s.%s.")
TypeError: bad operand type for unary -: 'str'

Workaround: Uninstall yum-presto and run "yum update" agaian.

Version-Release number of selected component (if applicable):
yum-presto.noarch 0:0.7.2-1.fc17 

How reproducible:
Always

Steps to Reproduce:
1.see description
2.
3.
  
Actual results:

see description
Expected results:


Additional info:

Comment 1 Fedora Update System 2012-03-29 16:58:43 UTC
yum-presto-0.7.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/yum-presto-0.7.3-1.fc17

Comment 2 Jonathan Dieter 2012-03-29 17:17:37 UTC
My apologies, this was a particularly bone-headed bug.  Hopefully the fix will make it into -testing ASAP.

Comment 3 Joachim Backes 2012-03-29 17:26:51 UTC
yum-presto-0.7.3-1.fc17 solves my problem.

Many Thanks.

Comment 4 mwesten 2012-03-29 18:31:44 UTC
Fix works for me as well.

Comment 5 Fedora Update System 2012-03-30 02:57:45 UTC
Package yum-presto-0.7.3-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-presto-0.7.3-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4862/yum-presto-0.7.3-1.fc17
then log in and leave karma (feedback).

Comment 6 Jonathan Dieter 2012-03-30 03:12:05 UTC
*** Bug 808241 has been marked as a duplicate of this bug. ***

Comment 7 collura 2012-03-30 03:49:01 UTC
yes after ran 
  yum downgrade yum-presto
to go from 
  yum-presto-0.7.2-1.fc17.noarch 
back to 
  yum-presto-0.7.1-2.fc17.noarch  
to get yum working again
then got the yum-presto-0.7.3-1.fc17.noarch test fix
  http://koji.fedoraproject.org/koji/buildinfo?buildID=310413
then was able to install updates just fine :')

thanks

Comment 8 collura 2012-03-30 04:24:02 UTC
made a handy dupicate for search ease:

  https://bugzilla.redhat.com/show_bug.cgi?id=808288

thanks again for fix :')

Comment 9 Jonathan Dieter 2012-03-30 08:37:04 UTC
*** Bug 808177 has been marked as a duplicate of this bug. ***

Comment 10 Jonathan Dieter 2012-03-30 08:40:13 UTC
If you're running into this bug when trying to update yum-presto, run:
yum --disablepresto update yum-presto

Comment 11 Jonathan Dieter 2012-03-30 08:42:28 UTC
*** Bug 808312 has been marked as a duplicate of this bug. ***

Comment 12 Zdeněk Pavlas 2012-03-30 08:43:30 UTC
*** Bug 808343 has been marked as a duplicate of this bug. ***

Comment 13 Mads Kiilerich 2012-03-30 10:12:24 UTC
*** Bug 808381 has been marked as a duplicate of this bug. ***

Comment 14 Jonathan Dieter 2012-03-30 18:08:49 UTC
*** Bug 808564 has been marked as a duplicate of this bug. ***

Comment 15 Dan Mashal 2012-03-30 23:03:55 UTC
*** Bug 771573 has been marked as a duplicate of this bug. ***

Comment 16 Adam Williamson 2012-03-31 00:04:20 UTC
*** Bug 808288 has been marked as a duplicate of this bug. ***

Comment 17 Adam Williamson 2012-03-31 00:06:44 UTC
This was introduced in a package which never got out of updates-testing, so it is not a Beta blocker.
-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 18 Andre Robatino 2012-04-01 07:27:01 UTC
*** Bug 808700 has been marked as a duplicate of this bug. ***

Comment 19 Jonathan Dieter 2012-04-01 11:00:51 UTC
*** Bug 808607 has been marked as a duplicate of this bug. ***

Comment 20 Jonathan Dieter 2012-04-01 11:00:54 UTC
*** Bug 808595 has been marked as a duplicate of this bug. ***

Comment 21 Jonathan Dieter 2012-04-02 10:35:37 UTC
*** Bug 809031 has been marked as a duplicate of this bug. ***

Comment 22 Arne Ahrend 2012-04-02 14:35:00 UTC
Fix works for me as well with yum-presto.noarch 0.7.3-1.fc17.

Many thanks for pointing out the
yum --disablepresto update yum-presto
command!

Comment 23 Zdeněk Pavlas 2012-04-06 06:56:42 UTC
*** Bug 809879 has been marked as a duplicate of this bug. ***

Comment 24 Fedora Update System 2012-04-12 03:20:32 UTC
yum-presto-0.7.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.