Avoid eating empty lines in spec %prep section (RhBug:573339)

- In spec %prep context empty lines don't usually matter but they can
  be significant in eg here-documents.
- Fixes regression from commit 94ff22b129
This commit is contained in:
Panu Matilainen 2010-03-15 12:00:55 +02:00
parent 35052b9623
commit 12802c36c9
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ int parsePrep(rpmSpec spec)
}
}
argvSplit(&saveLines, getStringBuf(sb), "\n");
saveLines = argvSplitString(getStringBuf(sb), "\n", ARGV_NONE);
for (lines = saveLines; *lines; lines++) {
res = 0;
if (rstreqn(*lines, "%setup", sizeof("%setup")-1)) {