Mailinglist Archive: opensuse-buildservice (247 mails)

< Previous Next >
[opensuse-buildservice] osc: reworked plugin mechanism
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Mon, 17 Jun 2013 15:17:26 +0200
  • Message-id: <20130617131726.GA2381@linux>
Hi,

last week osc's plugin mechanism was rewritten (for details see below).
As a consequence some plugins may need to be adapted in order to work
with the upcoming osc release.
Currently there's only one known problem and the fix is "trivial":

problem: NameError: name 'cmdln' is not defined
This problem occurs if you are using the "@cmdln.option" decorator
or other stuff from the cmdln module.
Adding the following import should fix the problem:
"from osc import cmdln"

Background:
Due to the recently added python3 support some things changed in
the osc codebase, most notably is probably the transition from the
"print" statement to the "print" function. As a result of this change
all plugins would have had to use the new "print" function, too
(which is quite intrusive if the plugin developer does not care
about python3 support). In order to reduce the required adaptions for
the existing plugins the plugin mechanism was "rewritten".

An osc package which contains the new plugin code can be found
here: http://download.opensuse.org/repositories/devel:/tools:/scm/

If you face additional problems please tell me:)


Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages