Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43166 Details for
Bug 69841
etc-update does not keep backups on auto-merges
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds auto backups
etc-update.diff (text/plain), 1.15 KB, created by
Ingo Hohmann
on 2004-11-02 07:42:03 UTC
(
hide
)
Description:
adds auto backups
Filename:
MIME Type:
Creator:
Ingo Hohmann
Created:
2004-11-02 07:42:03 UTC
Size:
1.15 KB
patch
obsolete
>12a13,19 >> # Ingo Hohmann (iho@gmx.de) >> # do_backup & KEEP_BACKUPS added to be able to keep backups of changed files >> >> # If you DO NOT want backups of automatically merged files, either uncomment >> # the following line, or set an environment variable like this. >> #ETC_UPDATE_KEEP_BACKUPS="no" >> >18a26,35 >> function do_backup() { >> if [ "$ETC_UPDATE_KEEP_BACKUPS" != "no" ]; then >> local ofile="${1}" >> local path=`dirname $ofile` >> local name=`basename $ofile` >> >> cp $ofile $path/._BACKUP_.$name._`date +%F_%H%M%S_%N` >> fi >> } >> >68a86 >> do_backup >125a144,149 >> echo -n " (" >> if [ "$ETC_UPDATE_KEEP_BACKUPS" == "no" ]; then >> echo "NO, I'm NOT keeping updates of automatically merged files)" >> else >> echo "YES, I'm keeping updates of automatically merged files)" >> fi >134a159 >> # (iho) add switch to keep backup? >263a289,290 >> # (iho) HACK >> do_backup ${ofile} >291a319,321 >> # (iho) >> do_backup ${ofile} >> >312a343,344 >> # (iho) >> do_backup ${ofile}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69841
: 43166