undo bug inbtroduced when moving macro before %if
authormarc <devnull@localhost>
Thu, 30 Apr 1998 21:20:01 +0000 (21:20 +0000)
committermarc <devnull@localhost>
Thu, 30 Apr 1998 21:20:01 +0000 (21:20 +0000)
CVS patchset: 2100
CVS date: 1998/04/30 21:20:01

build/read.c

index 8361cc9..66e18f0 100644 (file)
@@ -62,7 +62,9 @@ int readLine(Spec spec, int strip)
        *last = '\0';
     }
 
-    expandMacros(&spec->macros, spec->line);
+    if (spec->readStack->reading) {
+       expandMacros(&spec->macros, spec->line);
+    }
     
     rpmGetArchInfo(&arch, NULL);
     rpmGetOsInfo(&os, NULL);