Bug 331694

Summary: Software installer - when called from krpmview, switches from local file to online
Product: [openSUSE] openSUSE 10.3 Reporter: joerg reisenweber <reisenweber>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: kde-maintainers, locilka
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 10.3   
URL: http://www.xs4all.nl/~mfnboer/twinkle/download/twinkle-1.1-0.suse102.mdb1.i586.rpm
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description joerg reisenweber 2007-10-08 02:26:04 UTC
when i have a local RPM binary which i view via konqueror+krpmview, i click on button "install via Yast". 
Yast installer starts up, but does not install the local version, instead it downloads higher version number of the package from online repository and installs this one.
This is not the expected behaviour, and stopps installing of older versions of a package.

To reproduce, download attached URL and open file with konqueror.
Comment 1 Stephan Binner 2007-10-08 04:04:15 UTC
/opt/kde3/share/apps/krpmview/setup_temp_source creates a temporary repository with the file within and then installs from all repositories the highest package version. :-|
Comment 2 Martin Vidner 2007-10-08 07:32:45 UTC
I see. That's a design bug.

One way out would be to tell the libzypp resolver that we require the exact version+release of the clicked RPMs. That is possible with zypper but not with "yast2 -i". I'll look whether we have a Pkg bingding for it.
Comment 3 Martin Vidner 2007-10-26 15:56:12 UTC
OK, we do have
/usr/share/doc/packages/yast2-pkg-bindings/html/Resolvable_ResolvableInstallArchVersion.html in yast2-pkg-bindings-devel-doc.rpm (BTW Lukas I could not find an online reference).

So it should be straightforward to implement.

(Implementation note: remember not to collide with bug 222757 comment 10)
Comment 4 Martin Vidner 2010-11-02 14:30:55 UTC
This bug has been open for long but I haven't found the to fix it,
so now I close it. Sorry.

If you still care about it, please reopen it.

(I think PackageKit should be invoked instead of yast2 --install)