Diff
Differences From Artifact [3560b83269]:
- File contrib/theme_installer.py — part of check-in [a7c8985f62] at 2016-12-26 15:24:20 on branch trunk — Clear up .so files completely on Linux if failed to install. (user: Oliver, size: 7654) [annotate] [blame] [check-ins using]
To Artifact [ffc788c6a2]:
- File contrib/theme_installer.py — part of check-in [7027676c80] at 2016-12-26 15:56:59 on branch trunk — Introduce `depends:` field for themes as well (no version support, just basenames for linux/windows/gtk2/gtk3) (user: mario, size: 8157) [annotate] [blame] [check-ins using]
| ︙ | |||
122 123 124 125 126 127 128 129 130 131 132 133 134 135 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | + + + + + + + + + + + + |
homepage = row[4],
state = "gtk-zoom-fit",
format = self.mime,
listformat = "href"
)
# add
r.append(d)
# filter on properties
d_platform = "win32" if conf.windows else "linux"
d_gtk = "gtk2" if uikit.ver == 2 else "gtk3"
for i,d in enumerate(r):
if not d.get("depends"):
continue
for dep in re.split("\s*,\s*", d["depends"]):
if dep in ("gtk", "streamtuner2", "theme_installer", "gtk2|gtk3", "win32|linux"):
continue
if not dep in (d_platform, d_gtk):
del r[i]
# convert relative references
for d in r:
for field in ("url", "img", '$file'):
v = str(d.get(field))
if v and v.find("://") < 0:
d[field] = self.themes_url + v
|
| ︙ |