Here's some example output: theferret root # emerge --changelog --ask --update hdparm >>> --changelog implies --pretend... adding --pretend to options. >>> --pretend disables --ask... removing --ask from options. These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] sys-apps/hdparm-5.5 [5.4] *hdparm-5.5 11 Feb 2004; Martin Holzer <mholzer@gentoo.org> hdparm-5.5.ebuild: Version bumped. 08 Feb 2004; Brad House <brad_mssw@gentoo.org> hdparm-5.4.ebuild, files/hdparm-5.4-readahead_rename.patch: Patch provided by James Noble in Bug #40908 to work around glibc 2.3.3_pre20040117+ versions which define readahead internally in bits/fcntl.h 09 Jan 2004; Aron Griffis <agriffis@gentoo.org> hdparm-5.4.ebuild: stable on alpha These are the packages that I would merge, in order: It would make more sense to me if --changelog worked with --pretend OR --ask. This would hopefully give the following output in this example: theferret root # emerge --changelog --ask --update hdparm These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] sys-apps/hdparm-5.5 [5.4] *hdparm-5.5 11 Feb 2004; Martin Holzer <mholzer@gentoo.org> hdparm-5.5.ebuild: Version bumped. 08 Feb 2004; Brad House <brad_mssw@gentoo.org> hdparm-5.4.ebuild, files/hdparm-5.4-readahead_rename.patch: Patch provided by James Noble in Bug #40908 to work around glibc 2.3.3_pre20040117+ versions which define readahead internally in bits/fcntl.h 09 Jan 2004; Aron Griffis <agriffis@gentoo.org> hdparm-5.4.ebuild: stable on alpha Do you want me to merge these packages? [Yes/No]
Just as a minor addition, emerge --ask gives a traceback if you send an EOF character (^D or control-d): theferret root # emerge --ask kdebase These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] kde-base/kdebase-3.2.0 Do you want me to merge these packages? [Yes/No] Traceback (most recent call last): File "/usr/bin/emerge", line 2566, in ? if userquery(prompt)=="No": File "/usr/bin/emerge", line 49, in userquery response=raw_input("["+string.join([colours[i](responses[i]) for i in range(len(responses))],"/")+"] ") EOFError This wouldn't matter awfully much, only I like doing things such as: # qpkg -U -nc artwork | xargs emerge --ask At least it would be nice not to have a scary traceback. :)
Created attachment 25436 [details, diff] ask_vs_changelog.patch trivial fix for the first bug.
Thanks, that patch works beautifully for me. On the second issue, it probably isn't worth the effort. I tried writing some kind of patch, but I don't know any python and so couldn't work out how to check for EOF. the kind of behaivour I was looking for would be preferably to try and read more input, but at least act as if "no" had been given. So, this should probably be set as RESOLVED FIXED if the patch is accepted, ignoring the second "bug". :)
*** This bug has been marked as a duplicate of 39865 ***