~ubuntu-branches/ubuntu/quantal/software-center/quantal-updates

« back to all changes in this revision

Viewing changes to softwarecenter/db/pkginfo_impl/packagekit.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, Gabor Kelemen, Michael Vogt, Kiwinote, Gary Lasker, Juhana Jauhiainen
  • Date: 2012-02-15 19:19:32 UTC
  • Revision ID: package-import@ubuntu.com-20120215191932-ep1hp9tcay31djge
Tags: 5.1.9
[ Gabor Kelemen ]  
* lp:~kelemeng/software-center/bug926743:
  - Mark strings for translation, add translator comment where needed
    (LP: #926743)

[ Michael Vogt ]
* lp:~mvo/software-center/latest-recommender:
  - import latest recommender client
* lp:~mvo/software-center/dynamic-region-menu:
  - allow dynamic template in the software-center.menu file, currently
    supported is ${CURRENT_REGION}. This allows to build a dynamic
    "Your region" menu once we actually tag packages with the region
    information
* lp:~mvo/software-center/sca-video:
  - add the ability to display embedded videos in the application
    details view
* lp:~mvo/software-center/multiple-screenshots:
  - add support for the display of multiple screenshots in the
    application details view, as provided by the software-center-agent
* lp:~mvo/software-center/submit-review-hang-fix:
  - fix hang when submitting a review on precise
* lp:~mvo/software-center/screenshots-sorting:
  - ensure the multiple screenshots are sorted properly when
    they come from the json API
* lp:~mvo/software-center/sca-video-updates:
  - update the client to follow the server side changes for
    videos from software-center-agent
* lp:~mvo/software-center/video-ui-reshuffle:
  - shuffle the video location around a bit in the view to
    ensure the user finds it more easily
* increase dependency on python-apt for the required
  apt_pkg.DepCache.policy_priority() support
* lp:~mvo/software-center/sca-debtags:
  - fix the debtags parsing from the software-center-agent
* lp:~mvo/software-center/multiple-versions:
  - add support for multiple versions into software-center
* lp:~mvo/software-center/fix-recommenations-details-clicks:
  - fix clickthru of details view recommendations after refactor
* lp:~mvo/software-center/rfc3166-use-common-name:
  - ensure that "common_name" in rfc3166 is used when available
    to avoid political issues around the name of the region

[ Kiwinote ]
* data/ui/gtk3/css/*.css:
  - use 'px' suffixes as required by latest gtk
* softwarecenter/ui/gtk3/views/appdetailsview.py:
  - replace ... and ' with their unicode eequivalents (LP: #844799)
* softwarecenter/db/application.py:
  - don't crash if the version nr associated with a screenshot is None

[ Gary Lasker ]
* lp:~gary-lasker/software-center/recommender-service-url:
  - update to the correct production url for the recommender
    service 
* lp:~gary-lasker/software-center/import-latest-sreclient:
  - import latest recommender client 
* lp:~gary-lasker/software-center/recommendation:
  - implement the recommendations opt-in UI and flow, upload
    of the user profile data after opt-in, and display of
    per-application recommendations in the details view
* lp:~gary-lasker/software-center/temp-disable-lobby-recommendations-view:
  - temporarily hide the lobby recommendations opt-in and display
    view pending rollout of the corresponding support on the
    production server

[ Juhana Jauhiainen ]
* softwarecenter/backend/launchpad.py:
  - replaced EDGE_SERVICE_ROOT with LPNET_SERVICE_ROOT. (LP: #737697)

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
            return False
123
123
        return p.get_info() == packagekit.InfoEnum.INSTALLED
124
124
 
 
125
    def is_upgradable(self, pkgname):
 
126
        # FIXME: how is this done via PK ?
 
127
        return False
 
128
 
125
129
    def is_available(self, pkgname):
126
130
        # FIXME: i don't think this is being used
127
131
        return True
241
245
            return []
242
246
        return [p.get_name() for p in res.get_package_array() if (p.get_name() != pkg.name) and p.get_info() == packagekit.InfoEnum.INSTALLED]
243
247
 
244
 
    def get_total_size_on_install(self, pkgname, addons_install=None,
245
 
                                addons_remove=None):
 
248
    def get_total_size_on_install(self, pkgname, 
 
249
                                  addons_install=None, addons_remove=None,
 
250
                                  archive_suite=None):
246
251
        """ Returns a tuple (download_size, installed_size)
247
252
        with disk size in KB calculated for pkgname installation
248
253
        plus addons change.
249
254
        """
 
255
        # FIXME: support archive_suite here too
 
256
        
250
257
        # FIXME: PackageKit reports only one size at a time
251
258
        if self.is_installed(pkgname):
252
259
            return (0, self.get_size(pkgname))