Skip to content

Commit

Permalink
YCP Killer: Apply changes needed for Ruby translation
Browse files Browse the repository at this point in the history
This module needed few changes before it was possible to translate its
YCP files into Ruby. This commit performs them.

The commit is a result of running YCP Killer's "patch" command. The
history of the applied patch is available here:

  https://github.com/yast/ycp-killer/commits/master/patches/sshd.patch

See also:

  https://github.com/yast/ycp-killer
  • Loading branch information
yast-bot committed Jul 30, 2013
1 parent 348ae35 commit 6c3aa7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/clients/sshd_auto.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ switch (func) {
ret = Sshd::Write();
Progress::set (orig2);
break;

y2error("Unknown function: %1, Params %2", func, param);
default:
y2error("Unknown function: %1, Params %2", func, param);
}

/* Finish */
Expand Down
2 changes: 1 addition & 1 deletion testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

AUTOMAKE_OPTIONS = dejagnu
EXTRA_DIST = $(wildcard tests/*.out) $(wildcard tests/*.err) $(wildcard tests/*.ycp) $(wildcard tests/*.yh)
EXTRA_DIST = $(wildcard tests/*.out) $(wildcard tests/*.err) $(wildcard tests/*.rb)

testsuite_prepare = @ydatadir@/testsuite/Makefile.testsuite

Expand Down
9 changes: 5 additions & 4 deletions yast2-sshd.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-t

BuildArchitectures: noarch

Requires: yast2-ruby-bindings >= 1.0.0

Summary: YaST2 - SSH Server Configuration

%description
Expand All @@ -26,10 +28,9 @@ This package contains the YaST2 component for SSH server configuration.
%defattr(-,root,root)
%dir @yncludedir@/sshd
@yncludedir@/sshd/*
@clientdir@/sshd.ycp
@clientdir@/sshd_auto.ycp
@moduledir@/*.ybc
@moduledir@/*.ycp
@clientdir@/sshd.rb
@clientdir@/sshd_auto.rb
@moduledir@/*.rb
@desktopdir@/sshd.desktop
@schemadir@/autoyast/rnc/sshd_config.rnc
%doc @docdir@

0 comments on commit 6c3aa7c

Please sign in to comment.