This problem is caused by unsetting pkg[7] valuse at getPackage() called
by independency resolusion case.
(def getPackage(): class YumRepoSource in module
/usr/share/rhn/up2date_client/repoBackends/yumRepo.py .)
1) Therefore, I revised it to set a file passname within this function.
2) As cfg(/etc/sysconfig/rhn/up2date) did not have a setting key of
"Fedora/RPMS", I set it with a immeidiate value.
-----------------------------------------------------------------------------------------
#rpmPath = pkg[7] #### coment to exception by
independency resolusion
baseFileName = "%s-%s-%s.%s.rpm" % (pkg[0], pkg[1], pkg[2], pkg[4])
#### ins
rpmPath = "%s/%s" % ("Fedora/RPMS",
baseFileName) #### ins
-----------------------------------------------------------------------------------------
Namikawa, Shozo wrote:
Standing alone up2date libswt3-gtk2, happend IndexError: list index
out of range,
up2date libswt3-gtk2 with eclipse to OK as follow.
--------------------------------------------------------------------------------------
[root@localhost generic]# up2date "libswt3*"
-snip-
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
libswt3-gtk2 3.1.0_fc
0.M6.14 i386
Testing package set / solving RPM inter-dependencies...
########################################
libswt3-gtk2-3.1.0_fc-0.M6. ########################## Done.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1231, in exceptionHandler
log = up2dateLog.initLog()
NameError: global name 'up2dateLog' is not defined
Original exception was:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1264, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 799, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1136, in batchRun
batch.run()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 87, in run
self.__getPackages()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 168, in
__getPackages
up2date.getPackage(pkg, wrapperUtils.printPkg,
wrapperUtils.printRetrieveHash)
File "/usr/share/rhn/up2date_client/up2date.py", line 178, in getPackage
buf = rpcServer.doCall(repos.getPackage, pkg, msgCallback,
progressCallback)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 309, in doCall
ret = apply(method, args, kwargs)
File "/usr/share/rhn/up2date_client/repoDirector.py", line 39, in
getPackage
return self.handlers[channel['type']].getPackage(pkg, msgCallback,
progressCallback)
File "/usr/share/rhn/up2date_client/rpmSource.py", line 186, in
getPackage
package = source.getPackage(pkg, MsgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
124, in getPackage
rpmPath = pkg[7]
IndexError: list index out of range
--------------------------------------------------------------------------------------
[root@localhost generic]# up2date "[le]*"
-snip-
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
eclipse-bugzilla 0.1.0_fc
14 i386
eclipse-ecj 3.1.0_fc
0.M6.14 i386
eclipse-jdt 3.1.0_fc
0.M6.14 i386
eclipse-jdt-devel 3.1.0_fc
0.M6.14 i386
eclipse-pde 3.1.0_fc
0.M6.14 i386
eclipse-pde-devel 3.1.0_fc
0.M6.14 i386
eclipse-platform 3.1.0_fc
0.M6.14 i386
eclipse-platform-devel 3.1.0_fc
0.M6.14 i386
libswt3-gtk2 3.1.0_fc
0.M6.14 i386
Testing package set / solving RPM inter-dependencies...
########################################
eclipse-bugzilla-0.1.0_fc-1 ########################## Done.
eclipse-ecj-3.1.0_fc-0.M6.1 ########################## Done.
eclipse-jdt-3.1.0_fc-0.M6.1 ########################## Done.
eclipse-jdt-devel-3.1.0_fc- ########################## Done.
eclipse-pde-3.1.0_fc-0.M6.1 ########################## Done.
eclipse-pde-devel-3.1.0_fc- ########################## Done.
eclipse-platform-3.1.0_fc-0 ########################## Done.
eclipse-platform-devel-3.1. ########################## Done.
libswt3-gtk2-3.1.0_fc-0.M6. ########################## Done.
Preparing ########################################### [100%]
warning: eclipse-ecj-3.1.0_fc-0.M6.14: Header V3 DSA signature: NOKEY,
key ID 30c9ecf8
Installing...
1:eclipse-ecj ###########################################
[100%]
2:libswt3-gtk2 ###########################################
[100%]
3:eclipse-platform ###########################################
[100%]
4:eclipse-jdt ###########################################
[100%]
5:eclipse-jdt-devel ###########################################
[100%]
6:eclipse-platform-devel ###########################################
[100%]
7:eclipse-pde ###########################################
[100%]
8:eclipse-bugzilla ###########################################
[100%]
9:eclipse-pde-devel ###########################################
[100%]
The following wildcards did not match any packages:
[le]*
[root@localhost generic]#
--------------------------------------------------------------------------------------