| 20 | |
| 21 | The code for the two functions is in `mpbb-gather-archives`: |
| 22 | * `if ! curl -fIsL "${option_archive_site}/${archive_port}/${archive_basename}" > /dev/null;` |
| 23 | * `if "${tclsh}" "${option_jobs_dir}/port_binary_distributable.tcl" -v "${archive_port}"; then` |
| 24 | |
| 25 | It would be nice to create a standalone shell function to check whether a port is distributable to avoid some code duplication. |
| 26 | |
| 27 | But we'll have another problem: `install-dependencies` and `install-port` would currently skip installing anything in case the port exists already. And `gather-archives` will only ever upload active ports. Personally I would remove all those checks from `install-dependencies` and `install-port`. I would let the `list-subport` routine do the job of the gatekeeper and build (activate) everything once on the builder. |
| 28 | |
| 29 | While at this: we probably still have another tiny problem when wine's dependencies get updated and don't get built as universal. But I wouldn't want to activate all ports for the sake of that use case, I would try to solve that in a different way. |
| 30 | |
| 31 | A quick and dirty hack would be to extend the `if [when (not) to build the port]` and always build ports with non-default architectures (for example `i386` or `universal` on `x86_64`). In that case the buildbot would always build `wine` if somebody triggers that from time to time. |