Skip to content

Commit fbbd449

Browse files
committed
Download srpms if they're not in the config data
Previously, srpms were downloaded if 'buildrequires' was not part of the config data. By loading a bconds cache it started to happen that 'buildrequires' were loaded from the previous build, invalidating the condition. Nothing was then downloaded (the newer build) and no new potential buildrequires were extracted.
1 parent 0ee3bb6 commit fbbd449

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bconds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def parse_args():
462462
if args.packages and pkg not in args.packages:
463463
continue
464464
for bcond_config in bcond_configs:
465-
if 'buildrequires' not in bcond_config:
465+
if 'srpm' not in bcond_config:
466466
something_was_downloaded |= download_srpm_if_possible(bcond_config)
467467
if extract_buildrequires_if_possible(bcond_config):
468468
extracted_count += 1

0 commit comments

Comments
 (0)