[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#885995: lintian: check that gnome-shell extensions depend on the right gnome-shell version range



Package: lintian
Version: 2.5.66
Severity: wishlist

gnome-shell extensions install a JSON file containing an object with a
shell-version member that contains a list of gnome-shell major versions
(3.26 for eg) the extension is compatible with. When the installed
gnome-shell version doesn't match one of these versions then the
extension cannot be loaded. The Depends of the extension package
should match the shell-version list from the metadata.json file.
There should be two depends, one for >= the lowest major version
supported and one << for the next odd numbered major version after
the highest major version supported.

Here is a broken extension example:

$ cat /usr/share/gnome-shell/extensions/show-ip@kyle.aims.ac.za/metadata.json
{
  "description": "Show IP addresses (private or public) in gnome-shell drop-down status menu",
  "gettext-domain": "show-ip",
  "name": "Show IP",
  "settings-schema": "org.gnome.shell.extensions.show-ip",
  "shell-version": [
    "3.22"
  ],
  "url": "https://gitlab.com/paddatrapper/show-ip-gnome-extension";,
  "uuid": "show-ip@kyle.aims.ac.za",
  "version": 4
}
$ apt-cache show gnome-shell-extension-show-ip | grep Depends
Depends: gnome-shell (>= 3.16)

Here is what it should look like:

Depends: gnome-shell (>= 3.22), gnome-shell (>= 3.23~)

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: