Am 15.06.2011 21:56, schrieb Alex Hermann:
On Wednesday 15 June 2011, Josua Dietze wrote:
Why not use the
"/usr/share/usb_modeswitch" folder, alongside the package?

IMHO I think the folder change is not a good idea. The /usr/share folder is
supposed to be under package manager control, not user control. I think
overriding packaged configurations do belong in /etc. The current package
(with this bug fixed) fits my use case perfectly and I think it also fits
the Debian way of configuring software.

You may have a point there; I'm not familiar enough with the package 
conventions.
OdyX has just confirmed that fact :-)

An override config file should have higher priority than shipped config
of course.

O.K., so let's assume a user puts a changed/added config file into /etc/usb_modeswitch.d. It is preferred over the files in the package. One day there is a package update, and the new/changed configuration now comes included with the new package, probably improved over the "manual" file or with new parameters. What should happen then?

The priority would have to be reversed ...
Or the package install routine should notice the conflict and ask about a user decision.
For a moment I thought about checking file mod time. But it's very error-prone 
too.

It's getting a wee bit messy, I'm afraid.

Josh




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to