Re: Can plugin set exit code?
Miroslav Suchý <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Organization | Red Hat, Registered Address: Red Hat Czech s.r.o., Purkynova 99/71, 612 45 Brno, Czech Republic, Registered in Brno under identification number CZ27690016 |
| Message-ID | <[email protected]> |
On 03/14/2011 07:28 PM, [email protected] wrote: > A plugin can raise PluginYumExit and yum will exit with RC=1, but this a Yes, but that will terminate application immediately. Which I do not want to. > bad thing to do in a TYPE_CORE plugin > They are not supposed to exit yum IMO. Because it will break yum API > applications. > > sys.exit(-1) in a plugin is so BAAAAAAAAAAAAADDDDD :) I know... I filed: https://bugzilla.redhat.com/show_bug.cgi?id=684859 -- Miroslav Suchy Red Hat Satellite Engineering