autodist-git: exclude more binary suffixes from git repositories

This commit is contained in:
Silvan Calarco 2025-01-05 18:32:39 +01:00
parent 23fd85f414
commit 78ca53dba2

View File

@ -112,8 +112,8 @@ def commitReleaseFromDir(options, pkg_info, gitea_repo, repo, temp_dir):
stdout=subprocess.PIPE, check=False)
# Delete binary source archives
for pattern in [
'*.zip','*.tar.bz2','*.tar.xz','*.tar.gz','*.tgz','*.txz','*.iso',
'*.run','*.dll','*.bin','*.jar','*.msi','*.deb']:
'*.zip','*.tar.bz2','*.tar.xz','*.tar.gz','*.tar.lz','*.tgz','*.txz',
'*.iso','*.run','*.dll','*.bin','*.jar','*.msi','*.deb','*.rpm']:
for filename in glob.glob(f'{src_dir}/{pattern}'):
os.remove(filename)