[pacman-dev] "local version is up to date. Upgrade anyway?" question
Xavier
shiningxc at gmail.com
Thu Nov 22 13:48:37 EST 2007
On Wed, Nov 21, 2007 at 05:46:59PM +0100, Xavier wrote:
> On Wed, Nov 21, 2007 at 11:19:25AM -0500, Dan McGee wrote:
> > This seems like the mirror of your --unneeded option, in a way. Not
> > sure if --needed is really the best way to describe it, but it is a
> > possibility.
> >
>
> Yes, kind of.
>
It's very easy to implement, but I'm still wondering if people will like it
:P
So here is an example with pacman -S xorg:
** Current behavior (pressing enter at each question for the default answer) :
xav at nx7400> sudo pacman -S xorg
:: group xorg:
xf86-input-keyboard xf86-input-mouse xf86-video-vesa xorg-fonts-100dpi
xorg-fonts-75dpi xorg-res-utils xorg-server xorg-twm xorg-xinit xterm
:: Install whole content? [Y/n]
:: xf86-input-keyboard-1.2.2-2: local version is up to date. Upgrade anyway? [Y/n]
:: xf86-input-mouse-1.2.3-1: local version is up to date. Upgrade anyway? [Y/n]
:: xorg-server-1.4-5: local version is up to date. Upgrade anyway? [Y/n]
:: xorg-xinit-1.0.7-1: local version is up to date. Upgrade anyway? [Y/n]
:: xterm-229-2: local version is up to date. Upgrade anyway? [Y/n]
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: xf86-input-keyboard-1.2.2-2 xf86-input-mouse-1.2.3-1
xf86-video-vesa-1.3.0-5 xorg-fonts-100dpi-1.0.1-1 xorg-fonts-75dpi-1.0.1-2
xorg-res-utils-1.0.3-2 xorg-server-1.4-5 xorg-twm-1.0.1-2 xorg-xinit-1.0.7-1
xterm-229-2
Total Download Size: 22.89 MB
Total Installed Size: 29.84 MB
Proceed with installation? [Y/n]
** New behavior:
xav at nx7400> sudo src/pacman/pacman -S xorg
:: group xorg:
xf86-input-keyboard xf86-input-mouse xf86-video-vesa xorg-fonts-100dpi
xorg-fonts-75dpi xorg-res-utils xorg-server xorg-twm xorg-xinit xterm
:: Install whole content? [Y/n]
warning: xf86-input-keyboard-1.2.2-2 is up to date -- reinstalling
warning: xf86-input-mouse-1.2.3-1 is up to date -- reinstalling
warning: xorg-server-1.4-5 is up to date -- reinstalling
warning: xorg-xinit-1.0.7-1 is up to date -- reinstalling
warning: xterm-229-2 is up to date -- reinstalling
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: xf86-input-keyboard-1.2.2-2 xf86-input-mouse-1.2.3-1
xf86-video-vesa-1.3.0-5 xorg-fonts-100dpi-1.0.1-1 xorg-fonts-75dpi-1.0.1-2
xorg-res-utils-1.0.3-2 xorg-server-1.4-5 xorg-twm-1.0.1-2 xorg-xinit-1.0.7-1
xterm-229-2
Total Download Size: 22.89 MB
Total Installed Size: 29.84 MB
Proceed with installation? [Y/n]
** Current behavior (anwering no to all uptodate questions) :
xav at nx7400> sudo pacman -S xorg
:: group xorg:
xf86-input-keyboard xf86-input-mouse xf86-video-vesa xorg-fonts-100dpi
xorg-fonts-75dpi xorg-res-utils xorg-server xorg-twm xorg-xinit xterm
:: Install whole content? [Y/n]
:: xf86-input-keyboard-1.2.2-2: local version is up to date. Upgrade anyway? [Y/n] n
warning: xf86-input-keyboard-1.2.2-2 is up to date -- skipping
:: xf86-input-mouse-1.2.3-1: local version is up to date. Upgrade anyway? [Y/n] n
warning: xf86-input-mouse-1.2.3-1 is up to date -- skipping
:: xorg-server-1.4-5: local version is up to date. Upgrade anyway? [Y/n] n
warning: xorg-server-1.4-5 is up to date -- skipping
:: xorg-xinit-1.0.7-1: local version is up to date. Upgrade anyway? [Y/n] n
warning: xorg-xinit-1.0.7-1 is up to date -- skipping
:: xterm-229-2: local version is up to date. Upgrade anyway? [Y/n] n
warning: xterm-229-2 is up to date -- skipping
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: xf86-video-vesa-1.3.0-5 xorg-fonts-100dpi-1.0.1-1 xorg-fonts-75dpi-1.0.1-2
xorg-res-utils-1.0.3-2 xorg-twm-1.0.1-2
Total Download Size: 22.89 MB
Proceed with installation? [Y/n] n
** New behavior with --needed:
xav at nx7400> sudo src/pacman/pacman -S --needed xorg
:: group xorg:
xf86-input-keyboard xf86-input-mouse xf86-video-vesa xorg-fonts-100dpi
xorg-fonts-75dpi xorg-res-utils xorg-server xorg-twm xorg-xinit xterm
:: Install whole content? [Y/n]
warning: xf86-input-keyboard-1.2.2-2 is up to date -- skipping
warning: xf86-input-mouse-1.2.3-1 is up to date -- skipping
warning: xorg-server-1.4-5 is up to date -- skipping
warning: xorg-xinit-1.0.7-1 is up to date -- skipping
warning: xterm-229-2 is up to date -- skipping
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: xf86-video-vesa-1.3.0-5 xorg-fonts-100dpi-1.0.1-1
xorg-fonts-75dpi-1.0.1-2 xorg-res-utils-1.0.3-2 xorg-twm-1.0.1-2
Total Download Size: 22.89 MB
Proceed with installation? [Y/n]
More information about the pacman-dev
mailing list