Ticket #179: 0001-Fail-when-several-triggers-are-set-on-a-condition.patch
| File 0001-Fail-when-several-triggers-are-set-on-a-condition.patch, 1.2 kB (added by pterjan, 2 years ago) |
|---|
-
a/build/reqprov.c
old new 7 7 8 8 #include <rpm/header.h> 9 9 #include <rpm/rpmbuild.h> 10 #include <rpm/rpmlog.h> 10 11 #include "debug.h" 11 12 12 13 static int isNewDep(Header h, rpmTag nametag, … … 97 98 if (indextag) { 98 99 headerPutUint32(h, indextag, &index, 1); 99 100 } 101 } else { 102 /* Duplicate dep is a bug for triggers as only the first one will run */ 103 if (tagN == RPMTAG_TRIGGERNAME) { 104 rpmlog(RPMLOG_ERR, _("Only one trigger can be set on a specific condition: %s\n"), 105 rpmdsDNEVR(newds)); 106 return 1; 107 } 100 108 } 101 109 102 110 return 0;

