From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: man/, bin/
Date: Sun, 11 Mar 2012 02:56:01 +0000 (UTC) [thread overview]
Message-ID: <1331434499.2b3f235988b45c3c11d57fedad12587b1536fdac.vapier@gentoo> (raw)
commit: 2b3f235988b45c3c11d57fedad12587b1536fdac
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 11 02:54:59 2012 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Mar 11 02:54:59 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2b3f2359
etc-update: add a --preen flag
Add a flag to merge just trivial updates and then quit.
URL: http://bugs.gentoo.org/159080
Reported-by: Iván Pérez Domínguez <iperez <AT> babel.ls.fi.upm.es>
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
---
bin/etc-update | 5 +++++
man/etc-update.1 | 5 ++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/bin/etc-update b/bin/etc-update
index c49c4b8..cd63ae1 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -551,6 +551,7 @@ usage() {
Options:
-d, --debug Enable shell debugging
-h, --help Show help and run away
+ -p, --preen Automerge trivial changes only and quit
-v, --verbose Show settings and such along the way
-V, --version Show version and trundle away
@@ -574,12 +575,14 @@ declare -i count=0
declare input=0
declare title="Gentoo's etc-update tool!"
+PREEN=false
SET_X=false
VERBOSE=false
while [[ -n $1 ]] ; do
case $1 in
-d|--debug) SET_X=true;;
-h|--help) usage;;
+ -p|--preen) PREEN=true;;
-v|--verbose) VERBOSE=true;;
-V|--version) emerge --version; exit 0;;
--automode) parse_automode_flag $2 && shift || usage 1 "Invalid mode '$2'";;
@@ -674,6 +677,8 @@ fi
scan
+${PREEN} && exit 0
+
until (( input == -1 )); do
if (( count == 0 )); then
die "Nothing left to do; exiting. :)" 0
diff --git a/man/etc-update.1 b/man/etc-update.1
index 85d102d..366e850 100644
--- a/man/etc-update.1
+++ b/man/etc-update.1
@@ -27,9 +27,12 @@ for finding the aforementioned config protect variables.
.BR \-d ", " \-\-debug
Run with shell tracing enabled.
.TP
-.BR \h ", " \-\-help
+.BR \-h ", " \-\-help
Surprisingly, show the help output.
.TP
+.BR \-p ", " \-\-preen
+Automerge trivial changes only and quit.
+.TP
.BR \-v ", " \-\-verbose
Show settings and important decision info while running.
.TP
next reply other threads:[~2012-03-11 2:56 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-11 2:56 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-30 17:05 [gentoo-commits] proj/portage:master commit in: man/, bin/ Zac Medico
2013-08-22 4:06 Zac Medico
2013-08-22 2:01 Zac Medico
2013-08-04 20:51 Zac Medico
2013-07-23 20:42 Arfrever Frehtes Taifersar Arahesis
2013-07-13 9:35 Arfrever Frehtes Taifersar Arahesis
2013-05-18 18:47 Zac Medico
2013-04-28 22:06 Zac Medico
2012-10-31 21:32 Zac Medico
2012-10-11 3:10 Zac Medico
2012-09-24 20:26 Zac Medico
2012-09-24 3:47 Mike Frysinger
2012-06-17 15:46 Zac Medico
2012-03-17 21:33 Zac Medico
2012-03-11 2:44 Mike Frysinger
2012-01-02 7:48 Zac Medico
2011-12-22 23:43 Zac Medico
2011-12-21 20:08 Zac Medico
2011-12-21 20:04 Zac Medico
2011-10-17 4:22 Zac Medico
2011-10-14 18:06 Zac Medico
2011-08-31 3:05 Zac Medico
2011-08-13 13:52 Zac Medico
2011-08-11 3:00 Zac Medico
2011-06-24 10:23 Zac Medico
2011-05-01 15:58 Zac Medico
2011-05-01 14:52 Arfrever Frehtes Taifersar Arahesis
2011-05-01 1:23 Arfrever Frehtes Taifersar Arahesis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331434499.2b3f235988b45c3c11d57fedad12587b1536fdac.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox