Bug 235176

Summary: Up2date tomcat5 UnboundLocalError
Product: Red Hat Enterprise Linux 4 Reporter: Eva Schaller <eva>
Component: up2dateAssignee: Bret McMillan <bretm>
Status: CLOSED DUPLICATE QA Contact: Brandon Perkins <bperkins>
Severity: low Docs Contact:
Priority: low    
Version: 4.4CC: nobody
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-22 15:04:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eva Schaller 2007-04-04 10:42:18 UTC
Description of problem:
When installing Tomcat5 using up2date a python exception is triggered.

Version-Release number of selected component (if applicable):
up2date-4.5.5-1.e14
rhnlib-1.8.7-4

How reproducible:
up2date tomcat5

Steps to Reproduce:
1. up2date java-1.5.0-bea-devel
2. up2date postgresql-server postgresql-jdbc
3. up2date tomcat5
  
Actual results:
Return an exception error saying: 
UnboundLocalError

From /var/log/up2date : 
[Wed Apr  4 09:25:35 2007] up2date solving dep for: ['xml-commons']
[Wed Apr  4 09:25:36 2007] up2date   File "/usr/sbin/up2date", line
1288, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/up2date", line 806, in main
    fullUpdate, dryRun=options.dry_run))
   File "/usr/sbin/up2date", line 1143, in batchRun
    batch.run()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 78, in run
    self.__dryRun()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 163, in
__dryRun
    self.percentCallback)
   File "/usr/share/rhn/up2date_client/up2date.py", line 380, in dryRun
    ret = depsolve.solvedep()
   File "/usr/share/rhn/up2date_client/depSolver.py", line 752, in
solvedep
    ret = self.process_deps(deps)
   File "/usr/share/rhn/up2date_client/depSolver.py", line 646, in
process_deps
    changed = self.__dependencies(dependencies)
File "/usr/share/rhn/up2date_client/depSolver.py", line 409, in
__dependencies
    if iPkg[4] == aPkg[4] or iPkg[4] == "noarch" or aPkg[4] == "noarch":

Then I try to install 
up2date xml-commons-apis

And it return the same UnboundLocalError; checking in /var/log/up2date I saw: 
[Wed Apr  4 09:53:05 2007] up2date Package xml-commons-apis raised a
dep, but it is obsoleted by:
[['xml-commons-jaxp-1.3-apis', '1.3.03', '5jpp_1rh', '0', 'noarch',
'xml-commons-apis', '0:1.3.02-2jpp', '10']]
[Wed Apr  4 09:53:05 2007] up2date   File "/usr/sbin/up2date", line
1272, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/up2date", line 791, in main
    fullUpdate, dryRun=options.dry_run))
   File "/usr/sbin/up2date", line 1127, in batchRun
    batch.run()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 82, in run
    self.__dryRun()
   File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 204, in
__dryRun
    self.percentCallback)
   File "/usr/share/rhn/up2date_client/up2date.py", line 384, in dryRun
    ret = depsolve.solvedep()
   File "/usr/share/rhn/up2date_client/depSolver.py", line 752, in
solvedep
ret = self.process_deps(deps)
   File "/usr/share/rhn/up2date_client/depSolver.py", line 646, in
process_deps
    changed = self.__dependencies(dependencies)
   File "/usr/share/rhn/up2date_client/depSolver.py", line 409, in
__dependencies
    if iPkg[4] == aPkg[4] or iPkg[4] == "noarch" or aPkg[4] == "noarch":

So I installed xml-commons-jaxp and this allow me to install Tomcat5.

Expected results:
Tomcat5 installs without any error.

Additional info:

Comment 1 Red Hat Bugzilla 2007-04-12 02:19:44 UTC
User bnackash's account has been closed

Comment 2 Todd Sanders 2007-05-22 15:04:03 UTC

*** This bug has been marked as a duplicate of 235748 ***