Hello community, here is the log from the commit of package rubygem-webyast-eulas for openSUSE:Factory checked in at 2013-08-27 21:08:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-eulas (Old) and /work/SRC/openSUSE:Factory/.rubygem-webyast-eulas.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-eulas" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-webyast-eulas/rubygem-webyast-eulas.changes 2013-02-05 13:06:53.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-webyast-eulas.new/rubygem-webyast-eulas.changes 2013-08-27 21:22:15.000000000 +0200 @@ -1,0 +2,12 @@ +Mon Aug 26 08:19:43 UTC 2013 - lsle...@suse.cz + +- restart WebYast when the plugin is uninstalled +- 0.3.13 + +------------------------------------------------------------------- +Mon Apr 22 13:49:04 UTC 2013 - lsle...@suse.cz + +- support for the new polkit (Javascript rules file) (bnc#816478) +- 0.3.12 + +------------------------------------------------------------------- Old: ---- webyast-eulas-0.3.11.gem New: ---- 40-default-webyast-eulas.rules webyast-eulas-0.3.13.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-webyast-eulas.spec ++++++ --- /var/tmp/diff_new_pack.iafMW9/_old 2013-08-27 21:22:16.000000000 +0200 +++ /var/tmp/diff_new_pack.iafMW9/_new 2013-08-27 21:22:16.000000000 +0200 @@ -17,7 +17,7 @@ Name: rubygem-webyast-eulas -Version: 0.3.11 +Version: 0.3.13 Release: 0 %define mod_name webyast-eulas %define mod_full_name %{mod_name}-%{version} @@ -43,6 +43,7 @@ Source1: eulas-sles11.yml Source2: org.opensuse.yast.modules.yapi.licenses.policy Source3: eulas-opensuse12_3.yml +Source4: 40-default-webyast-eulas.rules # %define plugin_name eulas @@ -86,14 +87,18 @@ %webyast_run_plugin_tests %post +%if %suse_version < 1230 /usr/sbin/grantwebyastrights --user root --action grant > /dev/null /usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null +%endif %restart_webyast %postun %webyast_remove_assets +%webyast_plugin_postun + %install # @@ -125,6 +130,10 @@ # Policies mkdir -p $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir} cp %{SOURCE2} $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir} +%if %suse_version >= 1230 +mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/ +install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/etc/polkit-1/rules.d/ +%endif # remove empty public rm -rf $RPM_BUILD_ROOT/%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/public @@ -145,7 +154,6 @@ %{webyast_dir}/public/assets/* %dir /usr/share/%{webyast_user} %dir /usr/share/%{webyast_user}/%{plugin_name} -%dir %{webyast_vardir} %dir %{webyast_vardir}/%{plugin_name} /usr/share/%{webyast_user}/%{plugin_name}/licenses %dir /etc/webyast/ @@ -153,6 +161,9 @@ %attr(-,%{webyast_user},%{webyast_user}) %dir %{webyast_vardir}/%{plugin_name}/accepted-licenses %dir /usr/share/%{webyast_polkit_dir} %attr(644,root,root) %config /usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.licenses.policy +%if %suse_version >= 1230 +/etc/polkit-1/rules.d/40-default-webyast-eulas.rules +%endif %restart_script_name ++++++ 40-default-webyast-eulas.rules ++++++ // default permissions for "root" user polkit.addRule(function(action, subject) { if (action.id == "org.opensuse.yast.modules.yapi.licenses.accept" && subject.user == "root") { return polkit.Result.YES; } }); // vim: syntax=javascript -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org