diff options
author | Pang Yan Han <pangyanhan@gmail.com> | 2012-08-01 17:34:37 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-04 21:49:37 +1000 |
commit | b6320de4be2e39b01c1c03ebac2ffcdfa7ab7098 (patch) | |
tree | 50a7993f55866df8354cc857dd298720d0cb6ef6 /src/util/vercmp.c | |
parent | 27d9c25ee2fd6a03fb1ec1afdfbe105048875bae (diff) | |
download | pacman-b6320de4be2e39b01c1c03ebac2ffcdfa7ab7098.tar.xz |
Save backup files with extension .pacsave.n
Teach pacman to save backup files with extension .pacsave.n, where n is a
positive integer. The current backup file shall be saved as <name>.pacsave,
while existing .pacsave.n files will be renamed to <name>.pacsave.n+1
Example:
1. You have subversion installed in your local repo. /etc/conf.d/svnserve
is a file to be backed up. It contains local modifications
2. You remove subversion from your repo. /etc/conf.d/svnserve is backed up as
/etc/conf.d/svnserve.pacsave
2. You install subversion again
3. You edit /etc/conf.d/svnserve
4. You remove subversion. The existing /etc/conf.d/svnserve.pacsave is renamed
to /etc/conf.d/svnserve.pacsave.1 and /etc/conf.d/svnserve is backed up as
/etc/conf.d/svnserve.pacsave
Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Rebased from original email and adjusted for util-common usage.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/util/vercmp.c')
0 files changed, 0 insertions, 0 deletions