diff options
author | XZS | 2016-10-31 18:39:10 +0100 |
---|---|---|
committer | XZS | 2016-10-31 18:39:10 +0100 |
commit | 56904fbaf335a2bc80a32c6683d1d441dbdacdc8 (patch) | |
tree | cea800778f3a22ab0d00b53df603f1253c1a5a0d | |
parent | 349a8888e07d14f5b811639ed8e20b83f9a2304b (diff) | |
download | aur-56904fbaf335a2bc80a32c6683d1d441dbdacdc8.tar.gz |
model compatibility by default
Despite the information given out via the API, Firefox actually permits
installation of some extensions reported incompatible, which then work
fine. This is because Firefox' internal mechanism determines that these
extensions should be compatible by itself and subsequently refrains from
even querying the API to begin with.
The version range in the depends array should reflect this. The new
condition set models how Firefox and Thunderbird decide compatibility to
smoothen future updates.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 13 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = firefox-extension-hide-tab-bar-with-one-tab pkgdesc = Hide the tab bar if there is only one tab. pkgver = 1.5.1.signed.1.signed - pkgrel = 1 + pkgrel = 2 url = http://forums.mozillazine.org/viewtopic.php?f=48&t=2141579 arch = any license = MPLv2 @@ -4,7 +4,7 @@ pkgname=firefox-extension-hide-tab-bar-with-one-tab pkgver=1.5.1.signed.1.signed -pkgrel=1 +pkgrel=2 pkgdesc='Hide the tab bar if there is only one tab.' url='http://forums.mozillazine.org/viewtopic.php?f=48&t=2141579' license=('MPLv2') @@ -42,9 +42,18 @@ query-version() { xmllint .version --xpath \ "//application[appID='$2']/$1_version/text()" } + version-range() { - local emid=$(emid $1) - echo "$1>$(version min $emid)" "$1<$(version max $emid)" + if [ -z "$(sparql "?x em:type ?type. filter(?type in ('2', '64'))")" ] || + [ -n "$(sparql "?x em:strictCompatibility 'true'")" ] || + { [ -e chrome.manifest ] && + grep '^binary-component[ \t]' chrome.manifest ; } + then + local emid=$(emid $1) + echo "$1>$(version min $emid)" "$1<$(version max $emid)" + else + echo "$1>$(version min $(emid $1))" + fi } emid() { |