Merge lp:~gary-lasker/software-center/date-published-cleanup into lp:software-center

Proposed by Gary Lasker
Status: Merged
Merged at revision: 2632
Proposed branch: lp:~gary-lasker/software-center/date-published-cleanup
Merge into: lp:software-center
Diff against target: 38 lines (+6/-11)
2 files modified
debian/changelog (+6/-1)
softwarecenter/db/update.py (+0/-10)
To merge this branch: bzr merge lp:~gary-lasker/software-center/date-published-cleanup
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+87550@code.launchpad.net

Description of the change

Another very small change, this one removes the fallback code that we had left in for the what's new ordering of items from the agent. This was only temporary code and is no longer needed now that we are getting the date_published value from the production server.

Thanks!

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-01-04 23:28:43 +0000
+++ debian/changelog 2012-01-04 23:51:36 +0000
@@ -19,7 +19,12 @@
19 delays some computations and adds a cheaper way for getting the19 delays some computations and adds a cheaper way for getting the
20 appcount20 appcount
2121
22 -- Gary Lasker <gary.lasker@canonical.com> Wed, 04 Jan 2012 18:26:26 -050022 [ Gary Lasker ]
23 * softwarecenter/db/update.py:
24 - remove the fallback code for what's new ordering now that we
25 are getting the date_published value from the server
26
27 -- Gary Lasker <gary.lasker@canonical.com> Wed, 04 Jan 2012 18:42:22 -0500
2328
24software-center (5.1.4) precise; urgency=low29software-center (5.1.4) precise; urgency=low
2530
2631
=== modified file 'softwarecenter/db/update.py'
--- softwarecenter/db/update.py 2011-12-16 01:52:15 +0000
+++ softwarecenter/db/update.py 2012-01-04 23:51:36 +0000
@@ -655,16 +655,6 @@
655 if pkgname in cataloged_times:655 if pkgname in cataloged_times:
656 doc.add_value(axi_values["catalogedtime"], 656 doc.add_value(axi_values["catalogedtime"],
657 xapian.sortable_serialise(cataloged_times[pkgname]))657 xapian.sortable_serialise(cataloged_times[pkgname]))
658 else:
659 #####################################################
660 # TODO: This is just a fallback so that we keep our current
661 # behavior of having new items for-purchase appear in
662 # what's new...THIS SHOULD BE REMOVED after support
663 # for date_purchased in the agent has been deployed
664 # to the production server
665 doc.add_value(axi_values["catalogedtime"],
666 xapian.sortable_serialise(time.time()))
667 #####################################################
668 # pocket (main, restricted, ...)658 # pocket (main, restricted, ...)
669 if parser.has_option_desktop("X-AppInstall-Section"):659 if parser.has_option_desktop("X-AppInstall-Section"):
670 archive_section = parser.get_desktop("X-AppInstall-Section")660 archive_section = parser.get_desktop("X-AppInstall-Section")

Subscribers

People subscribed via source and target branches