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]>
I'm working on:
https://bugzilla.redhat.com/show_bug.cgi?id=658210
and I wonder. Is it even possible to set exit code from yum plugin?

I find that I can register my function to atexit.register() or even use
close hook. But the question is can I set exit code there?
I find that I can use there
 sys.exit(-1)
but that is not nice, since I will not give chance to other plugins... :(

-- 
Miroslav Suchy
Red Hat Satellite Engineering
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.