Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312989 Details for
Bug 416917
etc-update should have a -q/--quiet option
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add etc-update -q/--quiet option
etc_update_quiet.patch (text/plain), 1.88 KB, created by
Zac Medico
on 2012-05-24 19:26:22 UTC
(
hide
)
Description:
add etc-update -q/--quiet option
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2012-05-24 19:26:22 UTC
Size:
1.88 KB
patch
obsolete
>diff --git a/bin/etc-update b/bin/etc-update >index 1edc91f..b60a88d 100755 >--- a/bin/etc-update >+++ b/bin/etc-update >@@ -62,7 +62,7 @@ do_mv_ln() { > } > > scan() { >- echo "Scanning Configuration files..." >+ ${QUIET} || echo "Scanning Configuration files..." > rm -rf "${TMP}"/files > /dev/null 2>&1 > mkdir "${TMP}"/files || die "Failed mkdir command!" > count=0 >@@ -107,13 +107,13 @@ scan() { > for mpath in ${CONFIG_PROTECT_MASK}; do > mpath="${EROOT%/}${mpath}" > if [[ "${rpath}" == "${mpath}"* ]] ; then >- echo "Updating masked file: ${live_file}" >+ ${QUIET} || echo "Updating masked file: ${live_file}" > mv "${cfg_file}" "${live_file}" > continue 2 > fi > done > if [[ ! -f ${file} ]] ; then >- echo "Skipping non-file ${file} ..." >+ ${QUIET} || echo "Skipping non-file ${file} ..." > continue > fi > >@@ -140,7 +140,7 @@ scan() { > fi > > if [[ ${MATCHES} == 1 ]] ; then >- echo "Automerging trivial changes in: ${live_file}" >+ ${QUIET} || echo "Automerging trivial changes in: ${live_file}" > do_mv_ln "${cfg_file}" "${live_file}" > continue > else >@@ -547,9 +547,9 @@ die() { > local msg=$1 exitcode=${2:-1} > > if [ ${exitcode} -eq 0 ] ; then >- printf 'Exiting: %b\n' "${msg}" >+ ${QUIET} || printf 'Exiting: %b\n' "${msg}" > scan > /dev/null >- [ ${count} -gt 0 ] && echo "NOTE: ${count} updates remaining" >+ ! ${QUIET} && [ ${count} -gt 0 ] && echo "NOTE: ${count} updates remaining" > else > error "${msg}" > fi >@@ -599,12 +599,14 @@ declare title="Gentoo's etc-update tool!" > > PREEN=false > SET_X=false >+QUIET=false > VERBOSE=false > while [[ -n $1 ]] ; do > case $1 in > -d|--debug) SET_X=true;; > -h|--help) usage;; > -p|--preen) PREEN=true;; >+ -q|--quiet) QUIET=true;; > -v|--verbose) VERBOSE=true;; > -V|--version) emerge --version; exit 0;; > --automode) parse_automode_flag $2 && shift || usage 1 "Invalid mode '$2'";;
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 416917
:
312521
| 312989