rpm fails on upgrade

Jeff Johnson n3npq at mac.com
Sat Nov 20 17:35:59 CET 2010


On Nov 20, 2010, at 11:25 AM, Jan Palus wrote:

> Recently I added small patch to python-paramiko and built for testing, but
> upgrading failed with:
> 
> error: unpacking of archive failed on file
> /usr/share/python2.7/site-packages/paramiko-1.7.6-py2.7.egg-info: cpio:
> rename failed - Is a directory
> 
> Package from ftp contains directory /usr/share/python2.7/site-packages/paramiko-1.7.6-py2.7.egg-info
> which in new package turned into plain file (I'm not python guru so I
> have no clue why it happened at all). But generally speaking it is
> possible for directory to change into file with the same name and
> upgrade still should be possible. Is it my lack of knowledge or is it
> rpm bug?

RPM cannot just replace a directory with a symlink.

One can add a %pretrans to rename the directory and
accomplish the tranform between directory <-> symlink.

That has been described many times and many places,
most recently as a question & answer (with an explicit
example test case for regression testing) at
	http://launchpad.net/rpm

If you need additional information, try asking again at
	http://launchpad.net/rpm

hth

73 de Jeff



More information about the pld-devel-en mailing list