# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344017513 -7200 # Node ID f8813e60f168531e5fb2a646e152ea997aa83703 # Parent 65414bdd541c640ada7bba8efa38cd4b0b3746db Neutralize buggy code causing OpenPKG to have 'fatal problems' in spite of correct installation, configuration, and operation. An administrator suffering from this failure is even unable to uninstall the flawed software. diff -r 65414bdd541c -r f8813e60f168 openpkg/openpkg.spec --- a/openpkg/openpkg.spec Fri Aug 03 17:45:51 2012 +0200 +++ b/openpkg/openpkg.spec Fri Aug 03 20:11:53 2012 +0200 @@ -1200,6 +1200,12 @@ -e 's;^\(#include *<[^>][^>]*>\);/*\1*/;g' \ rpmconstant/rpmconstant.h + # Avoid bugs causing 'fatal problems' + sh $shtool subst \ + -e 's;\(rc = INTEGRITY\)_ERROR;\1_OK;g' \ + -e 's;integrity_check_message("%s\\n", result);((void)0);g' \ + rpmqv.c + # provide nonstandard constructs cat > nonstandard.h <