]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-error-fatal.patch
- from openpkg -- makes %{error:foo} in macros fatal
[packages/rpm.git] / rpm-error-fatal.patch
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.034026 seconds and 4 git commands to generate.