[Bug 515047] New: exit codes in yast2-metapackage-handler
http://bugzilla.novell.com/show_bug.cgi?id=515047 Summary: exit codes in yast2-metapackage-handler Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wolfgang@rosenauer.org QAContact: jsrain@novell.com CC: mvidner@novell.com Found By: Third Party Developer/Partner For a new feature of Firefox I'm using /sbin/OneClickInstallUI to install packages. To follow the workflow within Firefox I need to know the exit status if the operation was successful or failed. Apparently the module always exits with return code of zero. Is it possible to return proper exit codes from within the module or how else would I recognize success or failure? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mvidner@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED CC| |benji@opensuse.org -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User benji@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c1 --- Comment #1 from Benjamin Weber <benji@opensuse.org> 2009-06-24 10:54:26 MDT --- If I recall correctly yast allows exiting with either 0 for success or 16 for failure. So it should be possible to indicate failure, but not the kind of failure. Is this OK? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User wolfgang@rosenauer.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c2 --- Comment #2 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2009-06-24 10:56:11 MDT --- That's ok. So failure and abortion should return non-zero and successful installation should be zero. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User benji@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c3 --- Comment #3 from Benjamin Weber <benji@opensuse.org> 2009-06-24 11:01:14 MDT --- Is this for extensions or something else? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User benji@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c4 --- Comment #4 from Benjamin Weber <benji@opensuse.org> 2009-06-24 11:07:31 MDT --- If some packages succeed and others fail should it indicate failure? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User wolfgang@rosenauer.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c5 --- Comment #5 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2009-06-24 11:11:49 MDT --- (In reply to comment #3)
Is this for extensions or something else?
It's currently for plugins. (for example flash-player) (In reply to comment #4)
If some packages succeed and others fail should it indicate failure?
hmm, at the moment we only trigger one package but if requirements fail to install it should report failure. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User mvidner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c6 --- Comment #6 from Martin Vidner <mvidner@novell.com> 2009-06-25 02:44:46 MDT --- Good news: as bug 350740 is fixed since oS 11.1, more differentiation is possible. It is documented here, but I'd better provide a better translation: yast2-core-devel.rpm: file:///usr/share/doc/packages/yast2-core/autodocs/exitcodes.html Exit code 0: nothing, nil, true, or anything else 5: y2base invocation error 16: false, `abort, `cancel, 0 (that 0 is unfortunate :-/) 17: 1 18: 2 19: 3 and so on, exit-16 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User mvidner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c7 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |wolfgang@rosenauer.org --- Comment #7 from Martin Vidner <mvidner@novell.com> 2009-09-02 07:00:55 MDT --- Wolfgang, sorry for letting this slip. IIRC I have seen the extension released already. Do you still need something fixed? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=515047 User wolfgang@rosenauer.org added comment http://bugzilla.novell.com/show_bug.cgi?id=515047#c8 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|wolfgang@rosenauer.org | --- Comment #8 from Wolfgang Rosenauer <wolfgang@rosenauer.org> 2009-09-02 10:33:19 MDT --- This bug needs to be fixed. Otherwise the extension will always report success even if the installation failed. It doesn't block usage of the extension though. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=515047 https://bugzilla.novell.com/show_bug.cgi?id=515047#c Martin Vidner <mvidner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|exit codes in |[yast2-metapackage-handler] |yast2-metapackage-handler |fix exit codes so that | |Firefox extension | |recognizes failure -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com