Bug 19528

Summary: 2 syntax errors in the up2date script
Product: [Retired] Red Hat Linux Reporter: Dan Gindikin <dan>
Component: up2dateAssignee: Preston Brown <pbrown>
Status: CLOSED ERRATA QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
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: 2000-10-21 21:39:02 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 Dan Gindikin 2000-10-21 21:38:57 UTC
I saw both of these buglets, when I executed this command:

up2date --nosig openssh openssh-clients openssh-server sysklogd sysstat
up2date apache gnupg

This was on a vanilla RH 7.0 intallation.

E X C E P T I O N
-----------------
Traceback (innermost last):
  File "/usr/sbin/up2date", line 382, in ?
    main()
  File "/usr/sbin/up2date", line 366, in main
    sys.exit(batchRun(onlyList, pkgNames))
  File "/usr/sbin/up2date", line 195, in batchRun
    for index in range(updated):

F I X
-----
change line 195 to
    for index in range(len(updated)):


E X C E P T I O N
-----------------
Traceback (innermost last):
  File "/usr/sbin/up2date", line 382, in ?
    main()
  File "/usr/sbin/up2date", line 366, in main
    sys.exit(batchRun(onlyList, pkgNames))
  File "/usr/sbin/up2date", line 197, in batchRun
    print "%s\nSelecting %s for update." % e.errmsg, e.pkgName

F I X
-----
change line 197 to
    print "%s\nSelecting %s for update." % (e.errmsg, e.pkgName)

Once I made these two changes, it ran and installed everything fine.

Comment 1 Preston Brown 2000-11-28 16:18:43 UTC
both of these buglets have been removed by code changes in a new update agent
errata due to arrive this week.

Comment 2 Preston Brown 2000-11-28 19:41:42 UTC
*** Bug 21361 has been marked as a duplicate of this bug. ***

Comment 3 Preston Brown 2000-11-28 20:07:21 UTC
*** Bug 21361 has been marked as a duplicate of this bug. ***