~mmcg069/software-center/viewswitcher2

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

* softwarecenter/db/update.py:
  - don't index desktop files not available for our arch (LP: #629434)
    (most visible example in partners channel on maverick amd64)

Show diffs side-by-side

added added

removed removed

Lines of Context:
501
501
        if parser.has_option_desktop("X-AppInstall-Architectures"):
502
502
            arches = parser.get_desktop("X-AppInstall-Architectures")
503
503
            doc.add_value(XAPIAN_VALUE_ARCHIVE_ARCH, arches)
 
504
            if apt_pkg.config.find("Apt::Architecture") not in arches:
 
505
                return
504
506
        # Description (software-center extension)
505
507
        if parser.has_option_desktop("X-AppInstall-Description"):
506
508
            descr = parser.get_desktop("X-AppInstall-Description")