Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 116985

Summary: up2date crash
Product: Red Hat Enterprise Linux 2.1 Reporter: Brian DeFeyter <bdf>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-28 03:54:06 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:
Bug Depends On:    
Bug Blocks: 119505    

Description Brian DeFeyter 2004-02-27 02:54:12 UTC
Description of problem:
up2date crashes when running attempting an update:

Fetching package list for channel: rhel-i386-es-3...
########################################
 
Fetching Obsoletes list for channel: rhel-i386-es-3...
 
Fetching rpm headers...
########################################
 
Name                                    Version        Rel
----------------------------------------------------------
libxml2                                 2.5.10         6             
     i386
libxml2-devel                           2.5.10         6             
     i386
 
 
Testing package set / solving RPM inter-dependencies...
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1190, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 776, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1069, in batchRun
    batch.run()
  File "up2dateBatch.py", line 70, in run
  File "up2dateBatch.py", line 142, in __dryRun
  File "up2date.py", line 384, in dryRun
  File "depSolver.py", line 357, in setup
  File "depSolver.py", line 448, in __add
TypeError: 'in <string>' requires character as left operand


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

How reproducible: every time


Steps to Reproduce:
1. up2date -u
2.
3.
  
Actual results: crash

Expected results: complete update

Additional info:

Comment 1 Brian DeFeyter 2004-02-27 03:00:27 UTC
Also when trying to schedule a package update via RHN, the scheduled
action will fail with the following output:

Client execution returned "Fatal error in Python code occured [[6]]"
(code -1)



Comment 2 Adrian Likins 2004-04-05 20:11:04 UTC
Ahh. Easy workaround. Add a semicolon to the
end of the line for pkgsToInstallNotUpdate
in /etc/sysconfig/rhn/up2date

That is expected to be a list not a string
by the code. 

I'll take a look and see if I can make it
except either. 

Comment 3 Adrian Likins 2004-04-06 19:41:19 UTC
okay, 4.2.9 should handle this either way

Comment 4 Brian DeFeyter 2004-04-06 20:48:41 UTC
thank you