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:
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>
(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"?
(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).
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'