[Yum] yum-arch dies on non-rpm file
Piero Calucci
calucci at sissa.it
Fri Mar 14 14:14:03 UTC 2003
yum-arch dies when it tries to read a file that is not actually a rpm.
This happend to me running yum-arch on a mirror of rh71 (yes, I know
it's old) where some rpms are in fact missing, and you find instead a
sort of acces denied message from the master server "masqueraded" as
rpm:
[root at ring updates]# yum-arch -z `pwd`/7.1
<many lines/>
Digesting rpms 84 % complete: php-imap-4.0.6-9.7.1.i386.rpmTraceback
(innermost last):
File "/usr/sbin/yum-arch", line 23, in ?
pullheaders.main()
File "pullheaders.py", line 221, in main
File "pullheaders.py", line 55, in genhdrs
TypeError: unsubscriptable object
[root at ring updates]# file 7.1/sec/php-imap-4.0.6-9.7.1.i386.rpm
7.1/sec/php-imap-4.0.6-9.7.1.i386.rpm: HTML document text
[root at ring updates]# cat 7.1/sec/php-imap-4.0.6-9.7.1.i386.rpm
<TITLE>FTP Error</TITLE>
<H1>FTP Error</H1>
<h2>Could not login to FTP server</h2>
<PRE>Anonymous User Limit Reached, See
http://www.redhat.com/mirrors.html</PRE>
Piero
More information about the Yum
mailing list