You are not logged in.
I'm building a package which will probably be overwriting an existing file in /etc . How to I tell the package to create the pacnew or pacsave file if the filed does exist. Also, which one should be created?
Offline
Use the backup array - man PKGBUILD for details.
However... reading your post again, it sounds like you may want your package to overwrite an /etc file belonging to a different package. This is a package conflict, and it is handled using the conflicts/provides arrays.
Offline
i think u need an eg. backup=(etc/pacman.conf) line
edit: tomk beat me to it
Last edited by dolby (2007-09-22 22:14:21)
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
I'm installing an app that needs to overwrite a config file.
It isn't provides as my package depends on the one that creates the file I want to overwrite
For the same reason I don't think it is conflicts.
I think it should be backup then as my version of the config file is newer/better than the one already there.
Does that sound ok?
Offline
I've put the backup line in the PKGBUILD file and rebuilt the package but I'm still getting this error:
error: failed to prepare transaction (conflicting files)
carwhisperer: /etc/bluetooth/hcid.conf exists in filesystem
errors occurred, no packages were upgraded.
My PKGBUILD line is:
backup=(etc/bluetooth/hcid.conf)
I've tried it with and without quotes. Have I missed something else?
Offline
However... reading your post again, it sounds like you may want your package to overwrite an /etc file belonging to a different package. This is a package conflict, and it is handled using the conflicts/provides arrays.
the above
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
It won't work. Your best bet is to rename that file in your package. Or put it somewhere else and use an .install message with instructions on how to use it.
1000
Offline