pacman/lib/libalpm
Pang Yan Han b6320de4be 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>
2013-01-04 21:49:37 +10:00
..
po Updates from Transifex 2012-04-07 10:13:37 -05:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
add.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
add.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
alpm.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
alpm.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
alpm_list.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
alpm_list.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
backup.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
backup.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
base64.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
base64.h base64: don't compile base64_encode() function 2011-10-17 12:03:02 -05:00
be_local.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
be_package.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
be_sync.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
conflict.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
conflict.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
db.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
db.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
delta.c Use a defined constant in delta.c for num_matches 2013-01-03 12:03:10 +10:00
delta.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
deps.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
deps.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
diskspace.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
diskspace.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
dload.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
dload.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
error.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
filelist.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
filelist.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
graph.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
graph.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
group.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
group.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
handle.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
handle.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
libalpm.pc.in libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
log.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
log.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
Makefile.am Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
md5.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
md5.h Update MD5 routines with changes from PolarSSL 2011-08-11 20:17:21 -05:00
package.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
package.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pkghash.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
pkghash.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
rawstr.c include util.h in rawstr.c 2011-07-05 22:36:40 -05:00
remove.c Save backup files with extension .pacsave.n 2013-01-04 21:49:37 +10:00
remove.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
sha2.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
sha2.h Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
signing.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
signing.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
sync.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
sync.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
trans.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00
trans.h Update copyright year for 2013 2013-01-03 12:03:09 +10:00
util-common.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util-common.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
version.c Update copyright year for 2013 2013-01-03 12:03:09 +10:00