I need to check the network connection during uninstalling my product using 'rpm -e mypackage'. I tried using the preuninstall script, but if I return a non-zero exit code from it, rpm itself prints an error saying,
error: %preun(mypackage-126.96.36.199.0-1.i386) scriptlet failed, exit status 1
Is there a way I can have rpm abort the uninstall, but not print its own ugly error message?
Platform: Linux fc6/fc9, wxWidgets 2.8.9