diff options
author | Marius Mauch <genone@gentoo.org> | 2006-07-19 10:36:14 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2006-07-19 10:36:14 +0000 |
commit | 5f90936c80c8b5cd6cfee097e17895e232fd7db9 (patch) | |
tree | 24406bb70842515005508444586d27e4a919b279 | |
parent | a823d16b3351d535b65b9c85cec7a3b419bc23ce (diff) | |
download | portage-5f90936c80c8b5cd6cfee097e17895e232fd7db9.tar.gz portage-5f90936c80c8b5cd6cfee097e17895e232fd7db9.tar.bz2 portage-5f90936c80c8b5cd6cfee097e17895e232fd7db9.zip |
update mtime after replacing config files
svn path=/main/trunk/; revision=3932
-rwxr-xr-x | bin/etc-update | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/etc-update b/bin/etc-update index 3cedc660b..e28d38ef2 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -295,6 +295,7 @@ Please select from the menu above (-1 to ignore this update): " 1) echo "Replacing ${ofile} with ${file}" mv ${mv_opts} ${file} ${ofile} [ -n "${OVERWRITE_ALL}" ] && my_input=-1 + [ -e "${file}" ] || touch ${ofile} continue ;; 2) echo "Deleting ${file}" @@ -346,6 +347,7 @@ Please select from the menu above (-1 to exit, losing this merge): " 1) echo "Replacing ${ofile} with ${mfile}" chmod --reference=${ofile} ${mfile} mv ${mv_opts} ${mfile} ${ofile} + [ -e "${mfile}" ] || touch ${ofile} rm ${rm_opts} ${file} return 255 ;; |