libclick needs API for determining the current supported framework(s)

Bug #1271633 reported by Mike McCracken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Medium
Colin Watson

Bug Description

unity-scope-click needs to know the currently supported framework(s) to send to the click apps server in app searches.

from cjwatson's email on Jan 22 2014:

Please file a bug on the Ubuntu click package about this so that I don't
forget. I think it would be best to add an API for this as part of the
libclick work. In the meantime the following Python code or equivalent
should be safe (although please include a reference to any packages
where you've open-coded this in your bug report on click):

  def installed_frameworks():
      ext = ".framework"
      for name in os.listdir("/usr/share/click/frameworks"):
          if name.endswith(ext):
              yield name[:-len(ext)]

The corresponding bug for the scope is here:
https://bugs.launchpad.net/ubuntu/+source/unity-scope-click/+bug/1267190

Related branches

Mike McCracken (mikemc)
Changed in click (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Colin Watson (cjwatson)
tags: added: libclick
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.18.1

---------------
click (0.4.18.1) trusty; urgency=medium

  [ Colin Watson ]
  * If a user attempts to install a version of a package that is already
    installed in an underlay database, then just register the appropriate
    version for them rather than unpacking another copy.
  * Make "click hook run-system" and "click hook run-user" consistently use
    the bottom-most unpacked copy of a given version of a package, and
    update hook symlinks and user registration symlinks if necessary.

click (0.4.18) trusty; urgency=medium

  * Give gir1.2-click-0.4 an exact-versioned dependency on libclick-0.4-0.
  * Use is_symlink helper method in a few more places.
  * Add a similar is_dir helper method.
  * Ignore extraneous non-directories when walking a database root in
    Click.DB.get_packages and Click.DB.gc.
  * Make the PackageKit plugin tolerate the "_removable" dynamic manifest
    key being changed to a boolean in the future.
  * Document that users of "_removable" should tolerate it being a boolean.
  * Use libclick when removing packages, listing packages, or searching
    packages via the PackageKit plugin.
  * Add libclick interfaces to get package manifests, both individually
    (LP: #1287692) and for all installed packages (LP: #1287693).
  * Override description-starts-with-package-name Lintian error for click;
    this is describing the system as a whole rather than naming the package.
  * Add libclick interfaces to get the list of frameworks supported by the
    current system (LP: #1271633) and various properties of those frameworks
    (LP: #1287694).
 -- Ubuntu daily release <email address hidden> Tue, 11 Mar 2014 17:22:10 +0000

Changed in click (Ubuntu):
status: Fix Committed → Fix Released
hari (prahmana)
Changed in click (Ubuntu):
assignee: Colin Watson (cjwatson) → hari (prahmana)
Colin Watson (cjwatson)
Changed in click (Ubuntu):
assignee: hari (prahmana) → Colin Watson (cjwatson)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers