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

Re: Upgrading a package with diversions



> Michael Shields writes ("Re: Upgrading a package with diversions"):
> ...
> > Maybe, instead of running dpkg-divert from preinst/postrm at all, there
> > should be a DEBIAN/diversions file in the package.  It would simply contain
> > pairs of old and new filenames:
> > 
> >     /bin/ls
> >     /bin/ls.mono
> >     /usr/bin/thingy
> >     /usr/bin/thingy.mono
> 
> I had thought of a different solution but yours is much better.  I've
> put it on the wishlist and will implement it when I'm next messing
> with things like this.  Unfortunately your suggestion does involve a
> significant amount of extra work ...
> 
> Thanks,
> Ian.

Perhaps I can offer a minor refinement on this:

	/bin/ls            /bin/ls.mono
	/usr/bin/thingy    /usr/bin/thingy.mono

Grouping the elements of an entry by line would make it harder for someone
to get out of sync. 

-- 
  David H. Silber     dhs@firefly.com     Project: Refinance the house!
  <http://www.access.digex.net/~dhs/>     Project: lockstep

			     Programmer for hire.



Reply to: