]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-noexpand.patch
- _autostrip* bugfixes
[packages/rpm.git] / rpm-noexpand.patch
index 781a54e24c856d67edc54d287846e7b8e893f0e4..87c7e7a019f16b1f3e26a3d9962768056fe022a4 100644 (file)
        }
 --- rpm-4.3/build/parseSpec.c.wiget    Thu May 15 18:15:51 2003
 +++ rpm-4.3/build/parseSpec.c  Fri May 16 00:08:57 2003
-@@ -156,12 +156,16 @@
-       ofi->readPtr = from;
+@@ -230,12 +230,16 @@
+ /*@=mods@*/
  
        /* Don't expand macros (eg. %define) in false branch of %if clause */
 +      /* Also don't expand macros in %changelog where we set STRIP_NOEXPAND flag */
 +      /* (first line is ommited, so if there is e.g. %date macro, it will be expanded */
 +      if (!(strip & STRIP_NOEXPAND)) {
        if (spec->readStack->reading &&
-           expandMacros(spec, spec->macros, spec->lbuf, sizeof(spec->lbuf))) {
-               rpmError(RPMERR_BADSPEC, _("line %d: %s\n"),
+           expandMacros(spec, spec->macros, spec->lbuf, spec->lbuf_len)) {
+               rpmlog(RPMLOG_ERR, _("line %d: %s\n"),
                        spec->lineNum, spec->lbuf);
-               return RPMERR_BADSPEC;
+               return RPMRC_FAIL;
        }
-+      }       
++      }
        spec->nextline = spec->lbuf;
      }
+     return 0;
 @@ -273,6 +277,7 @@
      SKIPSPACE(s);
  
This page took 0.052364 seconds and 4 git commands to generate.