Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41293 - emerge --ask --changelog doesn't work as expected.
Summary: emerge --ask --changelog doesn't work as expected.
Status: RESOLVED DUPLICATE of bug 39865
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 14:25 UTC by ferret
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
ask_vs_changelog.patch (ask_vs_changelog.patch,599 bytes, patch)
2004-02-11 14:47 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ferret 2004-02-11 14:25:53 UTC
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]
Comment 1 ferret 2004-02-11 14:33:08 UTC
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. :)
Comment 2 TGL 2004-02-11 14:47:24 UTC
Created attachment 25436 [details, diff]
ask_vs_changelog.patch

trivial fix for the first bug.
Comment 3 ferret 2004-02-11 17:45:57 UTC
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". :)
Comment 4 SpanKY gentoo-dev 2004-02-11 17:51:49 UTC

*** This bug has been marked as a duplicate of 39865 ***