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

Bug#355439: gcc-4.0-base: Debian changelog and copyright lost after upgrade



Sven Joachim writes:
> > it will be fixed when gcc-4.1
> > is uploaded to unstable.
> 
> At the moment I don't see how you're going to accomplish that,
> since there is the danger that upgrading from version 4.0.2-9
> will delete the copyright/changelog files (then living in
> /usr/share/doc/gcc-4.1-base !) the same way as they did it for me.
> But maybe some magic in the preinst scripts can avoid that.

correct, some magic is needed for the libgcc1 preinst (and the other
ones):

case "$1" in
    upgrade|install)
	if [ -n "$2" ] && [ -h /usr/share/doc/libgcc1 ] \
	   && dpkg --compare-versions $2 lt 1:4.0.2-10
	then
	  rm -f /usr/share/doc/libgcc1
	fi
esac



Reply to: