Merge lp:~gary-lasker/software-center/custom-desktop-key into lp:software-center

Proposed by Gary Lasker
Status: Merged
Merged at revision: 1878
Proposed branch: lp:~gary-lasker/software-center/custom-desktop-key
Merge into: lp:software-center
Diff against target: 29 lines (+7/-1)
2 files modified
debian/changelog (+3/-0)
softwarecenter/db/update.py (+4/-1)
To merge this branch: bzr merge lp:~gary-lasker/software-center/custom-desktop-key
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+65885@code.launchpad.net

Description of the change

This branch provides support for a custom desktop key that allows application developers to specify a custom display name for their application in Ubuntu Software Center specifically. This is a feature request from Mike Terry, please see bug 801197 for more details.

Whatya think? Is this something we ought to support?

Thanks!

To post a comment you must log in.
1879. By Gary Lasker

merge with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-06-27 01:47:56 +0000
3+++ debian/changelog 2011-06-27 02:29:23 +0000
4@@ -24,6 +24,9 @@
5 error when searching (LP: #801114)
6 * softwarecenter/ui/gtk/appview.py:
7 - fix phantom install button in for purchase listview (LP: #801512)
8+ * softwarecenter/db/update.py:
9+ - add support for custom desktop key X-Ubuntu-Software-Center-Name
10+ for USC-specific display names (LP: #801197)
11
12 [ Steve Langasek ]
13 * debian/control: point Vcs-Bzr field at the right branch.
14
15=== modified file 'softwarecenter/db/update.py'
16--- softwarecenter/db/update.py 2011-06-21 08:55:06 +0000
17+++ softwarecenter/db/update.py 2011-06-27 02:29:23 +0000
18@@ -539,7 +539,10 @@
19 doc = xapian.Document()
20 term_generator.set_document(doc)
21 # app name is the data
22- if parser.has_option_desktop("X-GNOME-FullName"):
23+ if parser.has_option_desktop("X-Ubuntu-Software-Center-Name"):
24+ name = parser.get_desktop("X-Ubuntu-Software-Center-Name")
25+ untranslated_name = parser.get_desktop("X-Ubuntu-Software-Center-Name", translated=False)
26+ elif parser.has_option_desktop("X-GNOME-FullName"):
27 name = parser.get_desktop("X-GNOME-FullName")
28 untranslated_name = parser.get_desktop("X-GNOME-FullName", translated=False)
29 else:

Subscribers

People subscribed via source and target branches