diff options
-rw-r--r-- | build/parseSpec.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c index 7a39c59f4..3ee4649cf 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -281,16 +281,15 @@ int readLine(rpmSpec spec, int strip) if (!restoreFirstChar(spec)) { retry: - if ((rc = readLineFromOFI(spec, ofi)) != 0) - return rc; - - /* Copy next file line into the spec line buffer */ - - if ((rc = copyNextLineFromOFI(spec, ofi)) != 0) { - if (rc == RPMRC_FAIL) - goto retry; - return rc; - } + if ((rc = readLineFromOFI(spec, ofi)) != 0) + return rc; + + /* Copy next file line into the spec line buffer */ + if ((rc = copyNextLineFromOFI(spec, ofi)) != 0) { + if (rc == RPMRC_FAIL) + goto retry; + return rc; + } } copyNextLineFinish(spec, strip); |