rpmgs: download_any_tarball: use cached tarball with return, not continue
If the target tarball already exists in RPMSOURCEDIR and FORCEDOWNLOAD is
not set, the previous code did 'continue' inside the FORMATS loop, which
just iterated through extensions (always finding the same cached file)
and ultimately fell through to 'fatal'. Move the cache check out of the
loop and 'return' when a valid cached copy exists.
Showing
Please
register
or
sign in
to comment