Mailinglist Archive: opensuse-buildservice (176 mails)
< Previous | Next > |
Re: [opensuse-buildservice] How do I silence osc's output?
- From: Dave Plater <dplater.list@xxxxxxxxx>
- Date: Fri, 24 Mar 2017 19:12:02 +0200
- Message-id: <44b83519-0f50-cdd8-6149-6e621ce2a9e1@gmail.com>
On 24/03/2017 14:05, Marcus Hüwe wrote:
On 2017-03-24 11:39:31 +0200, Dave Plater wrote:See https://bugzilla.opensuse.org/show_bug.cgi?id=1030940, I put "from osc import cmdln" line on line 48 and it worked. Had to comment out OSC_PLUGIN_FAIL_IGNORE in /etc/bash.bashrc.local first and then reboot.
I've had this output from osc since the world began:
"/var/lib/osc-plugins/overview.py: name 'cmdln' is not defined" AFAIR it
was a bug and I put a workaround in my ~/.oscrc. I now want to use osc ls in
a script and even using -q I get the warning. How can I silence osc?
This is no warning, but an error and in this case osc aborts unless
you defined the OSC_PLUGIN_FAIL_IGNORE env variable. There are several
"fixes":
- install a new version of the overview plugin (this should be fixed...)
- remove the overview plugin
- redirect stderr to /dev/null
- manually fix the /var/lib/osc-plugins/overview.py by adding a
"from osc import cmdln" line
Marcus
Dave P
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx
< Previous | Next > |