Skip to content

Commit

Permalink
Added Y2DISABLELANGUAGEPLUGINS (gh##20)
Browse files Browse the repository at this point in the history
Enabled ignoring language bindings (yast2-ruby-bindings,
yast2-perl-bindings, yast2-python-bindings) by setting the
environment variable Y2DISABLELANGUAGEPLUGINS.
  • Loading branch information
mvidner committed Jun 28, 2013
1 parent a553d9b commit fc8dc1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions liby2/src/Y2LanguageLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ THis does not work because the environment may be already destroyed

Y2LanguageLoader::Y2LanguageLoader ()
{
if (getenv ("Y2DISABLELANGUAGEPLUGINS"))
{
// https://github.com/yast/yast-core/issues/20
return;
}

glob_t glob_buf;
int glob_flags = 0;
if (YCPPathSearch::numberOfComponentLevels() == 0)
Expand Down
1 change: 1 addition & 0 deletions libycp/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ testSignature_LDADD = ../src/libycp.la ../src/libycpvalues.la ../../liby2/src/li
PACKAGE=libycp

AUTOMAKE_OPTIONS = dejagnu
RUNTEST = Y2DISABLELANGUAGEPLUGINS=1 runtest

clean-local:
rm -f tmp.err.* tmp.out.* ycp.log ycp.sum site.exp libycp.log libycp.sum site.bak log.tmp
Expand Down

0 comments on commit fc8dc1c

Please sign in to comment.