The spec file read code was inserting a second \n after every line!
authormarc <devnull@localhost>
Wed, 14 Jan 1998 03:32:44 +0000 (03:32 +0000)
committermarc <devnull@localhost>
Wed, 14 Jan 1998 03:32:44 +0000 (03:32 +0000)
CVS patchset: 1961
CVS date: 1998/01/14 03:32:44

build/parseBuildInstallClean.c
build/parseChangelog.c
build/parseFiles.c
build/parsePrep.c
build/parseScript.c

index fbb9440..c5f9aff 100644 (file)
@@ -36,7 +36,7 @@ int parseBuildInstallClean(Spec spec, int parsePart)
     }
     
     while (! (nextPart = isPart(spec->line))) {
-       appendLineStringBuf(*sbp, spec->line);
+       appendStringBuf(*sbp, spec->line);
        if (readLine(spec, STRIP_NOTHING) > 0) {
            return PART_NONE;
        }
index 7de812c..1e04a7b 100644 (file)
@@ -29,7 +29,7 @@ int parseChangelog(Spec spec)
     }
     
     while (! (nextPart = isPart(spec->line))) {
-       appendLineStringBuf(sb, spec->line);
+       appendStringBuf(sb, spec->line);
        if (readLine(spec, STRIP_NOTHING) > 0) {
            nextPart = PART_NONE;
            break;
index 68cd72e..91eac57 100644 (file)
@@ -88,7 +88,7 @@ int parseFiles(Spec spec)
        nextPart = PART_NONE;
     } else {
        while (! (nextPart = isPart(spec->line))) {
-           appendLineStringBuf(pkg->fileList, spec->line);
+           appendStringBuf(pkg->fileList, spec->line);
            if (readLine(spec, STRIP_NOTHING) > 0) {
                nextPart = PART_NONE;
                break;
index bf611ea..556a2f2 100644 (file)
@@ -46,7 +46,7 @@ int parsePrep(Spec spec)
     while (! (nextPart = isPart(spec->line))) {
        /* Need to expand the macros inline.  That way we  */
        /* can give good line number information on error. */
-       appendLineStringBuf(buf, spec->line);
+       appendStringBuf(buf, spec->line);
        if (readLine(spec, STRIP_NOTHING) > 0) {
            nextPart = PART_NONE;
            break;
index b2f604f..55ba1dc 100644 (file)
@@ -148,7 +148,7 @@ int parseScript(Spec spec, int parsePart)
        nextPart = PART_NONE;
     } else {
        while (! (nextPart = isPart(spec->line))) {
-           appendLineStringBuf(sb, spec->line);
+           appendStringBuf(sb, spec->line);
            if (readLine(spec, STRIP_NOTHING) > 0) {
                nextPart = PART_NONE;
                break;