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/snapper.patch

See also:

  https://github.com/yast/ycp-killer
  • Loading branch information
yast-bot committed Jul 30, 2013
1 parent bb5ec94 commit 5dd94ac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
7 changes: 0 additions & 7 deletions agent-snapper/conf/Makefile.am
@@ -1,7 +0,0 @@
#
# Makefile.am for .../agent-snapper/conf
#

scrconf_DATA = snapper.scr

EXTRA_DIST = $(scrconf_DATA)
2 changes: 1 addition & 1 deletion testsuite/Makefile.am
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
1 change: 1 addition & 0 deletions testsuite/tests/GetSnapshotPath.out
@@ -1,4 +1,5 @@
Read .snapper.path $["num":0] nil
Log Snapshot '0' was not found.
Return
Read .snapper.path $["num":0] "/snapshots/0/snapshot"
Return /snapshots/0/snapshot
1 change: 1 addition & 0 deletions testsuite/tests/ReadConfigs.out
Expand Up @@ -2,6 +2,7 @@ Read .snapper.configs []
Return []
Return root
Read .snapper.configs nil
Log File /etc/sysconfig/snapper is not available.
Return ["root"]
Return root
Read .snapper.configs ["opt", "var", "root"]
Expand Down
4 changes: 3 additions & 1 deletion yast2-snapper.spec.in
Expand Up @@ -8,6 +8,8 @@ BuildRequires: libsnapper-devel >= 0.0.11
BuildRequires: yast2-core-devel >= 2.23.1
BuildRequires: libtool doxygen gcc-c++ perl-XML-Writer

Requires: yast2-ruby-bindings >= 1.0.0

Summary: YaST - file system snapshots review

%description
Expand All @@ -25,7 +27,7 @@ YaST module for accessing and managing btrfs system snapshots
%defattr(-,root,root)
%dir @yncludedir@/snapper
@yncludedir@/snapper/*
@clientdir@/snapper.ycp
@clientdir@/snapper.rb
@moduledir@/Snapper.*
@desktopdir@/snapper.desktop
@scrconfdir@/*.scr
Expand Down

0 comments on commit 5dd94ac

Please sign in to comment.