Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56722 - Portage: --ask (-a) option propogated across upgrade
Summary: Portage: --ask (-a) option propogated across upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-11 13:28 UTC by Andy Dalton
Modified: 2004-10-22 08:47 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 2004-07-11 13:28:52 UTC
When updating a set of packages where one of the packages is Portage and using the --ask (-a) option, the user is shown a list of packages to update and a message indicating that once Portage is updated, it will reload and continue merging.  However, the reloaded Portage re-asks the user to merge the remaining packages.  The user has already agreeded to emerge the packages.

Reproducible: Always
Steps to Reproduce:
1.) emerge -ua world

Actual Results:  
Here's an example:

# emerge -ua world

These are the packages that I would merge, in order:

[ebuild     U ] dev-db/mysql-4.0.20 [4.0.18-r2]
[ebuild     U ] sys-apps/baselayout-1.9.4-r3 [1.9.4-r2]
[ebuild     U ] sys-apps/portage-2.0.50-r9 [2.0.50-r8]
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
[ebuild     U ] net-misc/rsync-2.6.0-r2 [2.6.0]

Do you want me to merge these packages? [Yes/No] 


If the user enters 'yes' at the prompt, the packages listed prior to Portage are
updated (here mysql and baselayout), then Portage itself.  The new Portage then
recalculates dependencies to complete the merge.  However, this new invocation
re-asks the user to install latter packages (here rsync).

. . .
Do you want me to merge these packages? [Yes/No] yes
<la la la merging things>

These are the packages that I would merge, in order:

[ebuild     U ] net-misc/rsync-2.6.0-r2 [2.6.0]

Do you want me to merge these packages? [Yes/No] 

The issue is, Portage has already asked me if I want to merge rsync, and I've
already said yes.

Expected Results:  
In saving the state of Portage to re-invoke it after it's updated, the --ask
(-a) should be stripped so that the latter invocation doesn't re-ask the user to
install the remaining packages.  The current behavior prevents the user from
updating all of the packages unattended since the merging will stop once Portage
is updated (unless the user answers 'no' and issues an 'emerge -u world' which
seems a lot like the -p days).

# emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r6)
=================================================================
System uname: 2.6.7-gentoo-r6 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -Os -fforce-addr -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -Os -fforce-addr -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa apm arts avi berkdb cdr cjk crypt cscope cups curl dga
encode esd ethereal evo f77 fbcon foomaticdb gdbm gif gpm gtk gtk2 imap imlib
innodb java jpeg kde lcms libg++ libwww mad mbox memlimit mikmod mmx motif mpeg
mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt
quicktime readline ruby samba sasl scanner sdl slang snmp spell sse ssl svga
tcltk tcpd tetex threads truetype usb videos wmf x86 xml xml2 xmms xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-07-31 20:28:10 UTC
Ask is stripped upon resume.
51_pre14
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:35 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2