FS#15622 - package architecture check / warning

Attached to Project: Pacman
Opened by Roman Kyrylych (Romashka) - Tuesday, 21 July 2009, 12:36 GMT
Last edited by Xavier (shining) - Monday, 07 September 2009, 10:55 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To Xavier (shining)
Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.2.2
Due in Version 3.4.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

Pacman should check if package that's going to be installed has the same architecture as the system.
In case architectures of the package and the system differ - a warning should be given
and "Are you sure you want to install <pkgname>? [y/N]" question asked.
(it should still be possible to install a package if user knows what (s)he's doing)


Steps to Reproduce:

just try installing a package for different architecture,
no warning is given

Or for adventurous (Warning! Your pacman installation will be screwed! :-P),
my own mistake:

Add this to pacman.conf on x86_64 system:
[pacman-git]
Server = http://dev.archlinux.org/~dan/pacman-git/

x86_64 pacman will be replaced with i686 pacman-git - oops!
That's because of simple mistake in repo name (it should have been [pacman-git-64]).
This task depends upon

Closed by  Xavier (shining)
Monday, 07 September 2009, 10:55 GMT
Reason for closing:  Implemented
Additional comments about closing:  commit 5b27e78ba0
Comment by Xavier (shining) - Wednesday, 19 August 2009, 16:27 GMT
What about not asking a question, but letting the user override the arch?
For example in your case :
pacman -S pacman-git will fail
but pacman -S --arch i686 pacman-git will work
Comment by Xavier (shining) - Wednesday, 19 August 2009, 20:34 GMT
here are my 2 patches implementing the behavior above
Comment by Roman Kyrylych (Romashka) - Saturday, 05 September 2009, 08:40 GMT
This looks better than asking question. Thanks for the patch!

Loading...