Bug 73052 - Up2date fails when resolving deps
Summary: Up2date fails when resolving deps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: up2date
Version: 8.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Adrian Likins
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-30 05:46 UTC by Gregory Leblanc
Modified: 2015-01-08 00:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-05-20 14:45:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Gregory Leblanc 2002-08-30 05:46:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Description of problem:
The failure modes are slightly different from command line to GUI, but they look
pretty similar to my untrained eye

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. run up2date -u 

Or

1. run up2date
2. select packages to update
3. hit forward to go to the screen about packages required to solve dependancies

Actual Results:  In GUI mode, the "progress dialog" stalls at 0% of "Testing
package set / solving RPM inter-dependancies".

In TUI mode, traceback is generated immediately after "Testing package set /
solving RPM inter-dependencies..."

Expected Results:  up2date should check dependancies, and install packages

Additional info:

Sorry these are so long, but they're much easier to search on in the body of a
bug than in an attachment.  

[gleblanc@peecee BUILD]$ rpm -q up2date
up2date-2.9.55-2


Text mode traceback:

Testing package set / solving RPM inter-dependencies...
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 800, in ?
    main()
  File "/usr/sbin/up2date", line 536, in main
    sys.exit(batchRun(options.list, pkgNames, fullUpdate))
  File "/usr/sbin/up2date", line 749, in batchRun
    batch.run()
  File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 57, in run
    self.__dryRun()
  File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 111, in __dryRun
    self.percentCallback)
  File "/usr/share/rhn/up2date_client/up2date.py", line 405, in dryRun
    rc = depsolve.run()
  File "/usr/share/rhn/up2date_client/depSolver.py", line 473, in run
    self.ts.setProbFilter(rpm.RPMTRANS_FLAG_BUILD_PROBS)
AttributeError: setProbFilter




GUI Traceback:

Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/gui.py", line 1311, in onPackagePageNext
    self.__refreshCallback)
  File "/usr/share/rhn/up2date_client/up2date.py", line 405, in dryRun
    rc = depsolve.run()
  File "/usr/share/rhn/up2date_client/depSolver.py", line 473, in run
    self.ts.setProbFilter(rpm.RPMTRANS_FLAG_BUILD_PROBS)
AttributeError: setProbFilter
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/gui.py", line 1375, in onDependencyPagePrepare
    for pkg in self.depPackages:
AttributeError: Gui instance has no attribute 'depPackages'

Comment 1 Adrian Likins 2002-08-30 23:19:55 UTC
Can you try this with the very latest rpm from rawhide?

Comment 2 Gregory Leblanc 2002-08-30 23:45:07 UTC
[gleblanc@peecee gleblanc]$ rpm -q up2date
up2date-2.9.61-1

I get the same trace, except that a few of the line numbers are changed.

Comment 3 Adrian Likins 2002-08-30 23:57:45 UTC
heh, I meant the very latest version of the rpm package. The
error looks to be an old version of rpm without a new method
new up2date is calling (ie, rpm.ts.setProbFilter())

Sorry about that (second time I've done that even...)

Comment 4 Gregory Leblanc 2002-08-31 00:14:47 UTC
Ahh, I see!  I did have the latest rpm package installed, but not the latest
rpm-python nor rpm404-python packages installed.  I installed both of those, and
now it works.  Sounds like a Requires line got left out of one of those packages.

Comment 5 Adrian Likins 2002-08-31 02:10:42 UTC
Yeah, pretty much. Next version should have a more up2date
requires line.

Comment 6 Matt Jamison 2003-05-20 14:45:59 UTC
resolved, closing bug.


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