Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344467 - app-admin/emacs-updater-1.6 does not have an option to not ask to continue
Summary: app-admin/emacs-updater-1.6 does not have an option to not ask to continue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-11-07 02:35 UTC by Andy Dalton
Modified: 2010-11-10 20:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Dalton 2010-11-07 02:35:02 UTC
I have installed emacs-updater to rebuild emacs packages after an emacs update.  Unfortunately, the script does not include an option to not ask the user if s/he wishes to rebuild the packages.  It further executes the package manager again with the --ask option, asking the question again.  This makes using the tool difficult in scripted management environments.  (I have 40 machines over 2 labs and I don't want to answer 80 questions.)

I have two suggestions: (1) Don't include the --ask option to the package manager.  If the script has asked, there's no need to ask again.  If you want to list the packages that would be rebuilt before asking, that might be reasonable.  (2) Add a --noask option that doesn't do any asking.

I have found a work-around for my environment.  In order to get things working the way I wanted here, I had to do this:

for host in list of hostnames in the labs; do
    ssh -t ${host} 'yes | \
        sudo emacs-updater --package-manager-command "emerge -1v"'
done

If you need any additional information, please let me know.

Thank you.

Reproducible: Always

Steps to Reproduce:
Comment 1 Ulrich Müller gentoo-dev 2010-11-09 18:39:08 UTC
I've allowed for extra options to be passed to the package manager, after the "--" separator (analog to python-updater and perl-cleaner). That means the all options that are not strictly necessary (like --ask or --verbose) can be removed.

In SVN: <http://sources.gentoo.org/cgi-bin/viewvc.cgi/emacs?view=revision&revision=1584>
Comment 2 Ulrich Müller gentoo-dev 2010-11-09 21:23:47 UTC
(In reply to comment #0)
> (2) Add a --noask option that doesn't do any asking.

That option is still missing. I don't like the name "--noask" though.

@Emacs team: How about naming it "--no-interactive" or "--batch"?
Comment 3 Ulrich Müller gentoo-dev 2010-11-09 21:59:37 UTC
(In reply to comment #2)
> @Emacs team: How about naming it "--no-interactive" or "--batch"?

We use short option -n for --nocolour already, so --no-interactive might not be such a good choice. I've called it --batch for now (r1586).
Comment 4 Ulrich Müller gentoo-dev 2010-11-10 20:51:46 UTC
Fixed in emacs-updater-1.7.
Thank you for reporting.

(In reply to comment #0)
>     ssh -t ${host} 'yes | \
>         sudo emacs-updater --package-manager-command "emerge -1v"'

You should get identical functionality with the following command now:
    ssh -t ${host} 'sudo emacs-updater --batch -- --verbose'