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

Re: <pkg>-byte



Sven Luther <luther@dpt-info.u-strasbg.fr> writes:

>> > It would be no problem if i did the above from start, would it ?
>> 
>> Yes.
>
> So, this would be only for existing -byte packages, right ?

Yes.

>> >> I have a trick in my icewm{-gnome} maintainer scripts that work this
>> >> around.
>> >
>> > What is the trick ? Make sure it is a symlink in a postinst ?
>> 
>> For icewm-gnome:
>> 
>> --------------------------
>> 
>> preinst:
>> 
>> case "$1" in
>>     install|upgrade)
>>         if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.0.8.6-1"
>>         then
>>             if [ -d /usr/share/doc/icewm-gnome ]; then
>>                 mv /usr/share/doc/icewm-gnome \
>>                 /usr/share/doc/icewm-gnome.moved-by-preinst
>>             fi
>>         fi
>>     ;;
>> esac
>
> Mmm, it should no be necessary to move it, i could remove it all the
> same, since i _know_ that /usr/share/doc/spamoracle-byte belongs to
> spamoracle-byte, and is part of the package i am installing.

  Yes, but the move is for rollback purpose which is important to
  me: if the install should fail at any step, you should be able
  to revert the changes, because dpkg acts that way.

  Cheers,

-- 
Jérôme Marant

http://marant.org



Reply to: