#836 `mbs-build local` for platform:28 downloads all F28 packages
Closed: Fixed 6 years ago Opened 6 years ago by sgallagh.

Running mbs-build local against platform:f28 requires pulling all packages from F28 into a local cache. This is both extremely heavyweight in terms of space usage as well as entirely unnecessary since Koji already generates a repo for the f28-build tag that could be used instead.

Based on an IRC discussion, we want to figure out a way to automatically determine which tags have generated repos and use that rather than caching them locally. In the short-term, it may be acceptable to hard-code f28-build to do this while a more complete solution is found.


Proposed solution, pseudocode:

repo = koji_session.getRepo(module_tag)
if repo:
    repo_url = koji.PathInfo(topdir='https://kojipkgs.fedoraproject.org').repo(repo['id'], module_tag)
else:
    download rpms and run createrepo on them, like currently

Metadata Update from @mprahl:
- Issue assigned to mprahl

6 years ago

Proposed solution, pseudocode:
repo = koji_session.getRepo(module_tag)
if repo:
repo_url = koji.PathInfo(topdir='https://kojipkgs.fedoraproject.org').repo(repo['id'], module_tag)
else:
download rpms and run createrepo on them, like currently

Thank you for the suggestion.

PR #841 should address this

Metadata Update from @mprahl:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata