[zypp-devel] Does satsolver handle install-only flag ?

Hi, I have jre-1.6.0 package installed and one package jre-links package installed which requires "jre >= 1.6.0" . Now I want to install jre-1.5.0 package. First I want to do dependency resolution using satsolver and then install the package using 'rpm -i' command so that it can install jre-1.5.0 along side jre-1.6.0. But in the dependency resolution phase satsolver tells me to remove jre-links package because it tries to replace jre-1.6.0 with jre-1.5.0. Normally install-only flag is set to 1 in the metadata when 'rpm -i' behavior is intended in stead of default 'rpm -U' behavior. But does satsolver handle install-only flag during solving ? If no, then is there any plan to handle the flag ? If yes, then how do I set the flag for a solvable ? Thanks Rashmi -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Wed, Sep 22, 2010 at 10:06:06PM -0600, Rashmi Ranjan Mohanty wrote:
I have jre-1.6.0 package installed and one package jre-links package installed which requires "jre >= 1.6.0" . Now I want to install jre-1.5.0 package. First I want to do dependency resolution using satsolver and then install the package using 'rpm -i' command so that it can install jre-1.5.0 along side jre-1.6.0. But in the dependency resolution phase satsolver tells me to remove jre-links package because it tries to replace jre-1.6.0 with jre-1.5.0.
Normally install-only flag is set to 1 in the metadata when 'rpm -i' behavior is intended in stead of default 'rpm -U' behavior.
(I don't think "install-only" per package makes much sense, the user normally configures it "per package name".)
But does satsolver handle install-only flag during solving ? If no, then is there any plan to handle the flag ? If yes, then how do I set the flag for a solvable ?
You add SOLVER_NOOBSOLETES jobs to tell the solver that the matched packages should be installed with '-i', not '-U'. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Pushing queue job SOLVER_NOOBSOLETES|SOLVER_SOLVABLE_NAME for package name worked great. Thanks Michael. - Rashmi
Michael Schroeder <mls@suse.de> 9/23/2010 2:42 PM >>> On Wed, Sep 22, 2010 at 10:06:06PM -0600, Rashmi Ranjan Mohanty wrote: I have jre-1.6.0 package installed and one package jre-links package installed which requires "jre >= 1.6.0" . Now I want to install jre-1.5.0 package. First I want to do dependency resolution using satsolver and then install the package using 'rpm -i' command so that it can install jre-1.5.0 along side jre-1.6.0. But in the dependency resolution phase satsolver tells me to remove jre-links package because it tries to replace jre-1.6.0 with jre-1.5.0.
Normally install-only flag is set to 1 in the metadata when 'rpm -i' behavior is intended in stead of default 'rpm -U' behavior.
(I don't think "install-only" per package makes much sense, the user normally configures it "per package name".)
But does satsolver handle install-only flag during solving ? If no, then is there any plan to handle the flag ? If yes, then how do I set the flag for a solvable ?
You add SOLVER_NOOBSOLETES jobs to tell the solver that the matched packages should be installed with '-i', not '-U'. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Michael Schroeder
-
Rashmi Ranjan Mohanty