Bug 363785

Summary: Package installed is proposed for installation
Product: [Applications] Discover Reporter: Christophe Caillet <christophe.caillet>
Component: PackageKitAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: jr
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christophe Caillet 2016-06-01 09:33:58 UTC
After a fresh installation of Neon I've the package firefox already installed on the system but with Discover I'm able to install Firefox

Reproducible: Always

Steps to Reproduce:
1.Launch Discover on a fresh Neon install
2.See the Firefox app which is already installed on the system
3.You are now able to install it via Discover because for discover Firefox is not installed


Expected Results:  
Firefox is already installed so the button for Firefox should be "Remove" and not "Install"
Comment 1 Jonathan Riddell 2016-06-01 11:58:06 UTC
I confirm.  This doesn't happen with other stuff I looked at e.g. konsole
Comment 2 Aleix Pol 2016-06-01 16:01:00 UTC
Git commit de1edb307f4d74872eb797fd8ab4fe8ac13f3421 by Aleix Pol.
Committed on 01/06/2016 at 15:59.
Pushed by apol into branch 'master'.

Don't let resources be installed until their state is valid

M  +1    -1    discover/qml/InstallApplicationButton.qml
M  +1    -1    libdiscover/declarative/DiscoverDeclarativePlugin.cpp

http://commits.kde.org/discover/de1edb307f4d74872eb797fd8ab4fe8ac13f3421