]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- updated
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 20 Oct 2007 21:48:51 +0000 (21:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-noexpand.patch -> 1.6

rpm-noexpand.patch

index 781a54e24c856d67edc54d287846e7b8e893f0e4..589c1bd9d3f706d1aa8237db6ca9c763c4c67bdc 100644 (file)
@@ -12,7 +12,7 @@
 --- 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;
+ /*@=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 */
@@ -20,9 +20,9 @@
 +      if (!(strip & STRIP_NOEXPAND)) {
        if (spec->readStack->reading &&
            expandMacros(spec, spec->macros, spec->lbuf, sizeof(spec->lbuf))) {
-               rpmError(RPMERR_BADSPEC, _("line %d: %s\n"),
+               rpmlog(RPMLOG_ERR, _("line %d: %s\n"),
                        spec->lineNum, spec->lbuf);
-               return RPMERR_BADSPEC;
+               return RPMRC_FAIL;
        }
 +      }       
        spec->nextline = spec->lbuf;
This page took 0.041938 seconds and 4 git commands to generate.