Check-in [7027676c80]
Overview
Comment: | Introduce `depends:` field for themes as well (no version support, just basenames for linux/windows/gtk2/gtk3) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7027676c8061b984b78d1d0cd47f0628 |
User & Date: | mario on 2016-12-26 15:56:59 |
Other Links: | manifest | tags |
Context
2016-12-26
| ||
20:27 | User standard pluginconf.dependency() for themes filtering. check-in: 41291d31ab user: mario tags: trunk | |
15:56 | Introduce `depends:` field for themes as well (no version support, just basenames for linux/windows/gtk2/gtk3) check-in: 7027676c80 user: mario tags: trunk | |
15:25 | replace backslashes for VLC on `not conf.windows` check-in: 3d0eb6eed6 user: Oliver tags: trunk | |
Changes
Modified contrib/theme_installer.py from [3560b83269] to [ffc788c6a2].
︙ | ︙ | |||
122 123 124 125 126 127 128 129 130 131 132 133 134 135 | homepage = row[4], state = "gtk-zoom-fit", format = self.mime, listformat = "href" ) # add r.append(d) # 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 | > > > > > > > > > > > > | 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 |
︙ | ︙ |