[Yum] yum-arch dies on non-rpm file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2003-03-14 at 09:14, Piero Calucci wrote:
> 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@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

I should probably catch this error and exit more gracefully. But what
did you expect to happen? I think it should be taken as read that an rpm
needs to be an rpm :)

however, I'll look at where it occurs for catching the exception if rpm
can't open the file so a better error can be issued.

-sv




[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux