]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- from openpkg -- makes %{error:foo} in macros fatal
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Mar 2007 16:46:28 +0000 (16:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-error-fatal.patch -> 1.1

rpm-error-fatal.patch [new file with mode: 0644]

diff --git a/rpm-error-fatal.patch b/rpm-error-fatal.patch
new file mode 100644 (file)
index 0000000..9ae5ee2
--- /dev/null
@@ -0,0 +1,17 @@
++---------------------------------------------------------------------------
+| Make sure that an %{error:<msg>} macro really stops further
+| processing. Else it would be nothing more than a %{warn:<msg>}.
++---------------------------------------------------------------------------
+Index: rpmio/macro.c
+--- rpmio/macro.c      15 May 2003 13:42:01 -0000      1.1.1.7
++++ rpmio/macro.c      22 Jan 2004 21:42:32 -0000      1.2
+@@ -1329,7 +1337,7 @@
+           STREQ("error", f, fn)) {
+               int waserror = 0;
+               if (STREQ("error", f, fn))
+-                      waserror = 1;
++                      waserror = 1, rc = 1;
+               if (g < ge)
+                       doOutput(mb, waserror, g, gn);
+               else
+
This page took 0.032273 seconds and 4 git commands to generate.