File: provides-component-naming.txt

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (73 lines) | stat: -rw-r--r-- 3,791 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Package component provides naming
=================================
This document describes how the "provides"-strings for packages should
be formatted for the given PK_PROVIDES types.
This is needed to ensure cross-distro compatibility on package provides
naming (the naming of components packages provide), which is used for
example in pk_client_what_provides_async().
Valid types of provided components are defined in PkProvidesEnum.

In general, the component naming should be "type(component-name)".

Component naming
----------------

MODALIAS:               A string with the modalias, for example
                        "pci:v00008086d00003B64sv000017AAsd0000215Fbc07sc80i00"
                        or "usb:v09DAp000Ad0014dc00dsc00dp00ic03isc01ip02".
                        Returns packages which provide a driver for this
                        device.

CODEC:                  A string in the format of gstreamer<version>(type-format)
                        where <version> is the GStreamer API version (e. g.
                        0.10), "type" is a GStreamer element type ("encoder",
                        "decoder", "urisource", ""urisink", "element"), and
                        "format" is the type specific search string.
                        Example: "gstreamer0.10(decoder-audio/ac3)" or
                        "gstreamer1(decoder-audio/mp3)"

MIMETYPE:               Mimetypes are (valid) mimetypes strings,
                        for example "application/x-catalog" or "text/plain".

FONT:                   A font name, e.g. "Cantarell".

HARDWARE_DRIVER:        The only valid query at the moment is
                        "drivers_for_attached_hardware" which delivers all
                        driver packages that apply to the current system's
                        hardware.

POSTSCRIPT_DRIVER:
                        A string in the format of "postscriptdriver(mfg;mdl;)"
                        where mfg and mdl are the corresponding
                        IEEE 1284 Device ID keys for the printer model,
                        converted to lower-case and with spaces converted
                        to underscores.
                        Example: "postscriptdriver(epson;stylus_d92;)"

PLASMA_SERVICE:         A string in the format of
                        "plasma<version>(servicetype-name)" (where <version> is
                        currently expected to be 4 or 5), e.g.
                        "plasma4(dataengine-weather)". For backwards
                        compatibility, "servicetype-name" will be treated the
                        same as "plasma4(servicetype-name)".

SHARED_LIB:             Name of a shared library
                        Example: "libpackagekit-glib2.so.14"

PYTHON:                 A string in the format of "python<version>(module-name)",
                        or just the name of the Python module.
                        If the Python-Version is omitted, the backend will
                        choose the current default Python version.
                        Example: "python2(packagekit)"

LANGUAGE_SUPPORT:       A string in the format of language(ll_CC) or
                        language(ll), which should correspond to a
                        language/country pair or just a language, as in
                        /usr/share/i18n/SUPPORTED. Returns all packages
                        which provide language support (dictionaries,
                        translated help, ibus modules, etc.) for all packages
                        that are currently installed in the system.
                        Example: "language(zh_CN)" might suggest ibus-pinyin and
                        libreoffice-l10n-zh-cn if you have ibus and LibreOffice
                        installed.