Hello community,
here is the log from the commit of package yast2-ruby-bindings for
openSUSE:Factory checked in at 2015-05-27 12:40:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ruby-bindings"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes
2015-05-19 23:21:12.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes
2015-05-27 12:41:00.000000000 +0200
@@ -1,0 +2,6 @@
+Mon May 25 10:00:40 UTC 2015 - [email protected]
+
+- add ability to test if scr is local (FATE#317900)
+- 3.1.33
+
+-------------------------------------------------------------------
Old:
----
yast2-ruby-bindings-3.1.32.tar.bz2
New:
----
yast2-ruby-bindings-3.1.33.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.LaL1J1/_old 2015-05-27 12:41:01.000000000 +0200
+++ /var/tmp/diff_new_pack.LaL1J1/_new 2015-05-27 12:41:01.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.32
+Version: 3.1.33
Release: 0
Url: https://github.com/yast/yast-ruby-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-ruby-bindings-3.1.32.tar.bz2 -> yast2-ruby-bindings-3.1.33.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.32/package/yast2-ruby-bindings.changes
new/yast2-ruby-bindings-3.1.33/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-3.1.32/package/yast2-ruby-bindings.changes
2015-05-18 15:25:10.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.33/package/yast2-ruby-bindings.changes
2015-05-26 14:50:07.000000000 +0200
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon May 25 10:00:40 UTC 2015 - [email protected]
+
+- add ability to test if scr is local (FATE#317900)
+- 3.1.33
+
+-------------------------------------------------------------------
Mon May 18 08:34:37 UTC 2015 - [email protected]
- Initialize the YaST UI so that it can be called
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.32/package/yast2-ruby-bindings.spec
new/yast2-ruby-bindings-3.1.33/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-3.1.32/package/yast2-ruby-bindings.spec
2015-05-18 15:25:10.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.33/package/yast2-ruby-bindings.spec
2015-05-26 14:50:07.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.32
+Version: 3.1.33
Url: https://github.com/yast/yast-ruby-bindings
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.32/src/binary/Builtin.cc
new/yast2-ruby-bindings-3.1.33/src/binary/Builtin.cc
--- old/yast2-ruby-bindings-3.1.32/src/binary/Builtin.cc 2015-05-18
15:25:10.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.33/src/binary/Builtin.cc 2015-05-26
14:50:07.000000000 +0200
@@ -262,7 +262,7 @@
return strdup (retval);
}
-
+ // the return value should be free'd
char *
crypt_pass (const char* unencrypted, crypt_ybuiltin_t use_crypt)
{
@@ -326,7 +326,7 @@
if (!res)
return Qnil;
VALUE ret = yrb_utf8_str_new(res);
- delete res;
+ free(res);
return ret;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.32/src/ruby/yast/wfm.rb
new/yast2-ruby-bindings-3.1.33/src/ruby/yast/wfm.rb
--- old/yast2-ruby-bindings-3.1.32/src/ruby/yast/wfm.rb 2015-05-18
15:25:10.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.33/src/ruby/yast/wfm.rb 2015-05-26
14:50:07.000000000 +0200
@@ -109,6 +109,12 @@
call_builtin_wrapper("SCRGetName", handle)
end
+ # Tests if scr instance is pointed to chroot
+ # @return [Boolean]
+ def self.scr_chrooted?
+ SCRGetName(SCRGetDefault()) != "scr"
+ end
+
# Creates new SCR instance
#
# It is useful for installation where agents start operation on installed
system
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.32/tests/ruby/wfm_spec.rb
new/yast2-ruby-bindings-3.1.33/tests/ruby/wfm_spec.rb
--- old/yast2-ruby-bindings-3.1.32/tests/ruby/wfm_spec.rb 2015-05-18
15:25:10.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.33/tests/ruby/wfm_spec.rb 2015-05-26
14:50:07.000000000 +0200
@@ -29,5 +29,21 @@
expect(stdout_stderr).to eq ""
end
end
+
+ describe ".scr_chrooted?" do
+ it "returns false for local scr" do
+ expect(WFM.scr_chrooted?).to eq false
+ end
+
+ it "returns true for scr in chroot" do
+ old_handle = WFM.SCRGetDefault
+ handle = WFM.SCROpen("chroot=/tmp:scr", false)
+ WFM.SCRSetDefault(handle)
+
+ expect(WFM.scr_chrooted?).to eq true
+
+ WFM.SCRSetDefault(old_handle)
+ end
+ end
end
end