Merge pull request #154 from siegy22/patch-1

Allow centos 8-stream to be mirrored
This commit is contained in:
Zenithal 2022-11-22 00:53:28 +08:00 committed by GitHub
commit 6197c02054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ def main():
help='download repodata files instead of generating them') help='download repodata files instead of generating them')
args = parser.parse_args() args = parser.parse_args()
if '-' in args.os_version: if '-' in args.os_version and '-stream' not in args.os_version:
dash = args.os_version.index('-') dash = args.os_version.index('-')
os_list = [ str(i) for i in range( os_list = [ str(i) for i in range(
int(args.os_version[:dash]), int(args.os_version[:dash]),