[softwaremgmt] Re: zypper foo --repo (was: Is 1-Click reliable?)
2008/12/10 Jan Kupec <jkupec@suse.cz>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Cristian Morales Vega wrote:
Off-topic, but it would be a great addition also to zypper. The "--repo" option from "zypper install" is... counterintuitive, at least the one from openSUSE 11.0. You would expect it to install the selected packages from the selected repo... *without* disabling other repos. All repos (OBS, Packman...) depend on the official one (OSS), so a "zypper install -r packman <package>" can easily return a (stupid) dependency error because it isn't searching dependencies in OSS.
In http://svn.opensuse.org/svn/zypp/trunk/zypper/doc/TODO it is said: "+ zypper up --some-option repofoo (like 'rug up repo'?) - update packages from specified repos without disabling the others"... so I suppose you already know about this and I haven't opened a bug report for zypper in... should I?
Yes, we know about that. No need for a report.
In my opinion a new option isn't needed, but "--repo" behavior should be changed.
There are more people who would agree with you (http://lists.opensuse.org/zypp-devel/2008-10/msg00050.html). I think the current --repo functionality makes sense, too. So we should either introduce a new option for 'install-from-repos' and keep current --repo behavior, or make --repo do 'install-from-repos' and introduce new option to do 'use-only-this-repo':
To put it more clearly (the new option names are subject to discussion):
Either
1) zypper foo --repo - use repo (and ignore others) zypper foo --from - install from repo
or
2) zypper foo --repo - install from repo zypper foo --use-repo - use repo (and ignore others)
What do you think?
I'm not against a new option if it's needed. But, when the current --repo functionality makes sense? I said --repo behavior should be changed because I don't see a user case for the current behavior. If all deps are in the selected repo then both options behave the same. And if some needed deps are in a different repo... the only difference is that an option fails. Being the only difference that one option fails to install in some cases... it seems to me that nobody will need it. If there is a user case for both options... I suppose '1' or '2' would depend of the final names of the options. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
participants (1)
-
Cristian Morales Vega