Skip to content

Commit

Permalink
Only mirror packages matching arch with reposync
Browse files Browse the repository at this point in the history
There are a few monolithic repositories that we mirror that put all versions and architectures in the same tree,
which is painful to mirror, this at least reduces that somewhat.

This doesn't work if the package names are malformed and don't have an architecture in their filename.
  • Loading branch information
jrha committed Dec 17, 2024
1 parent 81ca00c commit b9ff1e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ def mirrorreposync(url, path, reponame, dist):
if CONFIG.reposyncminrate:
reposync_conf_contents += "minrate=%s\n" % CONFIG.reposyncminrate

# Only mirror packages exactly matching arch
reposync_conf_contents += "includepkgs=*.%s\n" % dist.arch

(file_object, reposync_conf_file) = tempfile.mkstemp(text=True)
handle = os.fdopen(file_object, 'w')
Expand Down

0 comments on commit b9ff1e6

Please sign in to comment.