No feedback when purchase in previous Ubuntu version isn't available for this version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
High
|
Michael Nelson |
Bug Description
software-
1. In Ubuntu 11.04 or earlier, purchase an item in USC that isn't available for Ocelot.
2. Do a clean install of Ocelot.
3. Launch USC.
4. Choose "File" > "Reinstall Previous Purchases".
5. Select the item.
6. Choose "Install".
What happens:
* Nothing visible.
* At the terminal:
------------
2011-08-25 19:03:22,074 - softwarecenter.
Check the spelling of the package name, and that the appropriate repository is enabled.
Package [dbus.String(
2011-08-25 19:03:22,417 - softwarecenter.
Package [dbus.String(
------------
What should happen: I hadn't specified this at all. But probably something like:
4. Any item that isn't available in this version of Ubuntu has a No symbol overlaid on the bottom left of its icon.
5. The "Install" button isn't present.
6. Clicking "More Info" takes you to a software item screen explaining that the item is not available for this version of Ubuntu, and that you should contact the vendor for an updated version.
#5 alone would be a minimal fix.
Notes for QA:
=============
See comment 1 for details of what happened when I originally tried to reproduce this in precice.
Until the corresponding fix for SCA is rolled out (bug 917109 - or until you test the client pointing to a different SCA instance supporting the fix), this branch should ensure that USC *won't* install the app from the incorrect distroseries - instead it will add a deb-line for precise and apt will fail if the package doesn't exist:
1) Purchase some apps on an oneiric system
2) On a precise system, click on Reinstall previous purchases
3) Click on more-info for an app
4) Click Install - verify that USC created the debline in your sources for precise, but the app will fail to install (unless it really exists in the given PPA for precise)
Once the fix for SCA is available, USC will not let the user click install if the app is not available for their current distroseries:
1-3) as above
4) Verify that there is no 'Install' button, and the package status line tells you that it is not available for the current Ubuntu version and to contact the vendor.
Related branches
- software-store-developers: Pending requested
-
Diff: 679 lines (+372/-196)5 files modifiedsoftwarecenter/db/application.py (+27/-1)
softwarecenter/db/update.py (+209/-190)
softwarecenter/enums.py (+3/-1)
test/test_database.py (+113/-4)
test/test_reinstall_purchased.py (+20/-0)
- software-store-developers: Pending requested
-
Diff: 138 lines (+59/-1)3 files modifiedsoftwarecenter/db/update.py (+22/-0)
test/test_database.py (+0/-1)
test/test_reinstall_purchased.py (+37/-0)
- Michael Vogt: Approve
- Anthony Lenton: Approve
-
Diff: 328 lines (+157/-86)3 files modifiedsoftwarecenter/ui/gtk3/views/appdetailsview.py (+13/-2)
test/gtk3/test_appdetailsview.py (+95/-48)
test/test_database.py (+49/-36)
Changed in software-center (Ubuntu): | |
importance: | Undecided → High |
tags: | added: client-server |
Changed in software-center (Ubuntu): | |
assignee: | nobody → Michael Nelson (michael.nelson) |
status: | New → In Progress |
description: | updated |
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
After fixing bug 917137 I'm now able to try reproducing this, but I get a different result:
At (6) when hitting the "Install" button, the application installs, even though it is not available for precise. Checking the sources.list file seems to indicate that USC enabled the *maverick* series and installed that.
software-center log: http:// paste.ubuntu. com/808402/ paste.ubuntu. com/808403/
updated sources.list file: http://
{{{ /private- ppa.launchpad. net/commercial- ppa-uploaders/ vendetta- online/ ubuntu/ maverick/main amd64 Packages dpkg/status
$ apt-cache policy vendetta-online
vendetta-online:
Installed: 1.8.149.1-0ubuntu1
Candidate: 1.8.149.1-0ubuntu1
Version table:
*** 1.8.149.1-0ubuntu1 0
500 https:/
100 /var/lib/
}}}