Implement support to "preserve" existent on-disk files.

See NEWS for more information. Fix #51
This commit is contained in:
Juan RP
2014-08-01 15:09:51 +02:00
parent fa960c2425
commit f8d8f91a08
18 changed files with 269 additions and 88 deletions

15
NEWS
View File

@@ -1,5 +1,20 @@
xbps-0.38 (???):
* Implemented support to preserve existent on-disk files, by always ignoring
the pkg content if the file has been matched. Details here:
https://github.com/voidlinux/xbps/issues/51
The new "preserve" keyword can be used in the xbps configuration file, as well
as for the system and configuration directories:
- <rootdir>/usr/share/xbps/preserve.d
- <rootdir>/etc/xbps/preserve.d
Full path to a file or globbing can be used:
- preserve=/usr/bin/blah
- preserve=/etc/blah/*.conf
* Always preserve files that exist on disk, but are managed by a package.
When such condition ocurrs install the pkg configuration file as `file.new-<version>`.
This fixes GH issue #50 https://github.com/voidlinux/xbps/issues/50.