Re: Declarative Diversions - GSoC Project Update 1

2011-06-01 Thread Goswin von Brederlow
Steve Langasek vor...@debian.org writes: On Tue, May 31, 2011 at 09:49:26AM +0200, Goswin von Brederlow wrote: Raphael Hertzog hert...@debian.org writes: On Mon, 30 May 2011, Goswin von Brederlow wrote: Sam Dunne sam.dunne...@gmail.com writes: This project will infer --add, --remove

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread sean finney
/lurk Hi Sam, On Mon, May 30, 2011 at 03:51:32PM +0100, Sam Dunne wrote: One diversion per line Blank lines and lines with # are comments Two fields per diversion seperated by whitespace (SOURCE DESTINATION) Does this mean it will not be possible to divert a file when the source or

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Raphael Hertzog
On Tue, 31 May 2011, sean finney wrote: Does this mean it will not be possible to divert a file when the source or destination has whitespace in it? If so I'd suggest you also have support for some backslash-type escaping. Or to use two lines instead of one. And to support multiple entries

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Sam Dunne
It will have to support whitespace in filenames but I haven't decided how to escape it yet. Backslashes are a good idea but so is seperating them by line. However if I'm looking for newlines in may become awkward in the code. Either way it will have to be resolved. If anyone else has any opinions

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Tollef Fog Heen
]] Raphael Hertzog | On Tue, 31 May 2011, sean finney wrote: | Does this mean it will not be possible to divert a file when the source | or destination has whitespace in it? If so I'd suggest you also have | support for some backslash-type escaping. | | Or to use two lines instead of one.

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Goswin von Brederlow
Tollef Fog Heen tfh...@err.no writes: ]] Raphael Hertzog | On Tue, 31 May 2011, sean finney wrote: | Does this mean it will not be possible to divert a file when the source | or destination has whitespace in it? If so I'd suggest you also have | support for some backslash-type

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Russ Allbery
Raphael Hertzog hert...@debian.org writes: Or to use two lines instead of one. And to support multiple entries make the different entries separated by an empty line (so that it's possible to add supplementary fields in the future shall that be required). --- source1 dest1 source2 dest2

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Tollef Fog Heen
]] Goswin von Brederlow | Do we even need a Divert-To? In most cases the new name doesn't matter | or it is enough to know that the new name will be old name +.dpkg-divert | or +.package choosen automatically. I can imagine cases where you want to control what it's renamed to, yes. For

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Steve Langasek
On Tue, May 31, 2011 at 09:49:26AM +0200, Goswin von Brederlow wrote: Raphael Hertzog hert...@debian.org writes: On Mon, 30 May 2011, Goswin von Brederlow wrote: Sam Dunne sam.dunne...@gmail.com writes: This project will infer --add, --remove and --package and will not allow you to

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Steve Langasek
On Tue, May 31, 2011 at 03:55:11PM +0200, Goswin von Brederlow wrote: Tollef Fog Heen tfh...@err.no writes: I'd like us to go with the standard that's used in most other similar files: RFC2822 style, so something like: Divert-From: /usr/share/foo Divert-To: /usr/share/bar

Re: Declarative Diversions - GSoC Project Update 1

2011-05-31 Thread Russ Allbery
Steve Langasek vor...@debian.org writes: There are definitely cases where Divert-To would be needed; Tollef has pointed out one, another is when diverting a shared library because you have to divert to a completely different directory to ensure ldconfig doesn't pick it up and create a symlink

Declarative Diversions - GSoC Project Update 1

2011-05-30 Thread Sam Dunne
So earlier on I posted about my work on declarative diversionshttp://blog.sam-dunne.com/post/5995015527/diversions-control-file . I felt I needed to clarify a few things as a few people asked me different questions and I don't think I made the post clear enough and I also left out an important

Re: Declarative Diversions - GSoC Project Update 1

2011-05-30 Thread Goswin von Brederlow
Sam Dunne sam.dunne...@gmail.com writes: This project will infer --add, --remove and --package and will not allow you to specify them. The same is goes for --rename, it is being made default and not optional (for now, I am aware of some special cases). --divert will not be specifiable and

Re: Declarative Diversions - GSoC Project Update 1

2011-05-30 Thread Raphael Hertzog
On Mon, 30 May 2011, Goswin von Brederlow wrote: Sam Dunne sam.dunne...@gmail.com writes: This project will infer --add, --remove and --package and will not allow you to specify them. The same is goes for --rename, it is being made default and not optional (for now, I am aware of

Re: Declarative Diversions - GSoC Project Update 1

2011-05-30 Thread Sam Dunne
Everyone can ignore --divert will not be specifiable and will take the default format file.divert-$package. Got my notes messed up and this is covered in destination On 30 May 2011 17:52, Raphael Hertzog hert...@debian.org wrote: On Mon, 30 May 2011, Goswin von Brederlow wrote: Sam Dunne