Blame rpm-4.8.0-spec-readline.patch
|
Panu Matilainen |
6462ae |
commit daec6ebf58331776279f389738af4788b865033d
|
|
Panu Matilainen |
6462ae |
Author: Michael Schroeder <mls@suse.de>
|
|
Panu Matilainen |
6462ae |
Date: Mon Apr 12 12:10:20 2010 +0200
|
|
Panu Matilainen |
6462ae |
|
|
Panu Matilainen |
6462ae |
readLineFromOFI may modify the fileStack, thus we have to re-set
|
|
Panu Matilainen |
6462ae |
ofi after calling it
|
|
Panu Matilainen |
6462ae |
|
|
Panu Matilainen |
6462ae |
diff --git a/build/parseSpec.c b/build/parseSpec.c
|
|
Panu Matilainen |
6462ae |
index 06b5a3d..f45022b 100644
|
|
Panu Matilainen |
6462ae |
--- a/build/parseSpec.c
|
|
Panu Matilainen |
6462ae |
+++ b/build/parseSpec.c
|
|
Panu Matilainen |
6462ae |
@@ -274,6 +274,7 @@ int readLine(rpmSpec spec, int strip)
|
|
Panu Matilainen |
6462ae |
retry:
|
|
Panu Matilainen |
6462ae |
if ((rc = readLineFromOFI(spec, ofi)) != 0)
|
|
Panu Matilainen |
6462ae |
return rc;
|
|
Panu Matilainen |
6462ae |
+ ofi = spec->fileStack;
|
|
Panu Matilainen |
6462ae |
|
|
Panu Matilainen |
6462ae |
/* Copy next file line into the spec line buffer */
|
|
Panu Matilainen |
6462ae |
rc = copyNextLineFromOFI(spec, ofi);
|