public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:emacs-updater commit in: /
Date: Sun,  6 May 2012 16:06:09 +0000 (UTC)	[thread overview]
Message-ID: <1289327504.658dcfabc89f89ad7884e906501491764c38d649.sping@gentoo> (raw)

commit:     658dcfabc89f89ad7884e906501491764c38d649
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  9 18:31:44 2010 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 18:31:44 2010 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=658dcfab

Allow for additional options passed to the package manager, bug 344467.

svn path=/emacs-updater/; revision=1584

---
 ChangeLog       |   10 ++++++++++
 emacs-updater   |   11 +++++++----
 emacs-updater.8 |    7 ++++++-
 3 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 442c7aa..f91c631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-11-09  Ulrich Mueller  <ulm@gentoo.org>
+
+	* emacs-updater (pm_portage, pm_pkgcore): Don't specify options
+	that are not strictly necessary. Fixes bug 344467.
+	(PM_EXTRAOPTS): New variable, saves any additional options after
+	the -- separator, so that they can be passed to the package
+	manager later on.
+	(usage): Update.
+	* emacs-updater.8: Update.
+
 2010-01-04  Christian Faulhammer  <fauli@gentoo.org>
 
 	* emacs-updater (pm_portage): Add --keep-going option for user

diff --git a/emacs-updater b/emacs-updater
index f1d80b6..e63d1e6 100755
--- a/emacs-updater
+++ b/emacs-updater
@@ -16,6 +16,7 @@ ACTIONS="sitedir rebuild"
 
 # Default package manager
 PM_COMMAND=pm_auto
+PM_EXTRAOPTS=( )
 
 # Other default variable settings
 EXACT=
@@ -56,6 +57,8 @@ usage() {
 	X                         the whole command string must be quoted
 	X  -h, --help             display this help and exit
 	X      --version          output version information and exit
+	X
+	X  -- OPTIONS             Pass additional OPTIONS to package manager
 	EOF
     exit ${1}
 }
@@ -73,10 +76,10 @@ version() {
 
 # Wrapper for package manager commands
 have_portage() { type -P emerge >/dev/null; }
-pm_portage() { emerge --oneshot --ask --verbose --keep-going "$@"; }
+pm_portage() { emerge --oneshot "$@"; }
 
 have_pkgcore() { type -P pmerge >/dev/null; }
-pm_pkgcore() { pmerge --oneshot --ask "$@"; }
+pm_pkgcore() { pmerge --oneshot "$@"; }
 
 have_paludis() { type -P paludis >/dev/null; }
 pm_paludis() { paludis --install --preserve-world "$@"; }
@@ -150,7 +153,7 @@ do
 	    shift 2
 	    ;;
 	--package-manager-command) PM_COMMAND=${2}; shift 2 ;;
-	--) shift; break ;;
+	--) shift; PM_EXTRAOPTS=( "$@" ); break ;;
 	*)
 	    # this should not happen; getopt should return bad status
 	    echo "Invalid option '${1}' given!"
@@ -311,7 +314,7 @@ case "${choice}" in
 	exit 10 ;;
 esac
 
-${PM_COMMAND} $(<"${PKGFILE}")
+${PM_COMMAND} "${PM_EXTRAOPTS[@]}" $(<"${PKGFILE}")
 
 warning "If a package is being rebuilt over and over again,"
 warning "please report it on http://bugs.gentoo.org/"

diff --git a/emacs-updater.8 b/emacs-updater.8
index 55d6bdf..f368662 100644
--- a/emacs-updater.8
+++ b/emacs-updater.8
@@ -2,7 +2,7 @@
 .\" Distributed under the terms of the GNU General Public License v2 or later
 .\" $Id$
 .\"
-.TH emacs-updater 8 "August 2009" "Gentoo Linux"
+.TH emacs-updater 8 "November 2010" "Gentoo Linux"
 .SH NAME
 emacs-updater \- rebuild Emacs packages
 .SH SYNOPSIS
@@ -71,6 +71,11 @@ Display help and exit.
 .TP
 .B --version
 Output version information and exit.
+.TP
+.BI -- " OPTIONS"
+Pass additional
+.I OPTIONS
+to package manager.  This must be last on the command line.
 .SH ENVIRONMENT
 .TP
 .B PACKAGE_MANAGER



             reply	other threads:[~2012-05-06 16:14 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-06 16:06 Sebastian Pipping [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-05 14:08 [gentoo-commits] proj/emacs-tools:emacs-updater commit in: / Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2024-05-02 16:52 Ulrich Müller
2023-09-25 18:54 Ulrich Müller
2023-09-25 18:47 Ulrich Müller
2019-08-30 22:02 Ulrich Müller
2019-08-30 22:02 Ulrich Müller
2018-12-09 22:37 Ulrich Müller
2018-09-16 14:50 Ulrich Müller
2016-06-08  6:53 Ulrich Müller
2016-06-07 22:20 Ulrich Müller
2016-06-07 13:06 Ulrich Müller
2016-06-07 12:50 Ulrich Müller
2016-06-07 12:50 Ulrich Müller
2014-06-05 17:07 Ulrich Müller
2014-06-05 16:43 Ulrich Müller
2014-05-20  6:49 Ulrich Müller
2014-05-19 18:14 Ulrich Müller
2014-05-19 18:14 Ulrich Müller
2013-08-09 13:57 Ulrich Mueller
2013-03-20 17:03 Ulrich Mueller
2013-03-20 16:54 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-12 18:55 Ulrich Mueller
2013-03-11 11:27 Ulrich Mueller
2013-03-11 10:15 Ulrich Mueller
2013-03-11  9:43 Ulrich Mueller
2013-03-11  8:23 Ulrich Mueller
2013-03-09 12:31 Ulrich Mueller
2013-03-09 12:31 Ulrich Mueller
2013-03-09 12:31 Ulrich Mueller
2012-10-11  8:20 Ulrich Mueller
2012-10-11  8:20 Ulrich Mueller
2012-10-08 20:59 Ulrich Mueller
2012-10-08 20:45 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 18:14 Ulrich Mueller
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-updater " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-updater@1480 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-updater " Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping

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=1289327504.658dcfabc89f89ad7884e906501491764c38d649.sping@gentoo \
    --to=sping@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