Hello community,
here is the log from the commit of package rubygem-webyast-software for
openSUSE:Factory checked in at 2013-08-27 21:10:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-software (Old)
and /work/SRC/openSUSE:Factory/.rubygem-webyast-software.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-software"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-webyast-software/rubygem-webyast-software.changes
2013-03-08 09:50:07.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-webyast-software.new/rubygem-webyast-software.changes
2013-08-27 21:22:24.000000000 +0200
@@ -1,0 +2,23 @@
+Mon Aug 26 08:19:43 UTC 2013 - [email protected]
+
+- restart WebYast when the plugin is uninstalled
+- 0.3.19
+
+-------------------------------------------------------------------
+Tue May 21 15:35:57 UTC 2013 - [email protected]
+
+- improve PackageKit 0.8+ compatibility
+- other minor fixes
+
+-------------------------------------------------------------------
+Tue May 7 15:01:53 UTC 2013 - [email protected]
+
+- support for PackageKit 0.8.x
+
+-------------------------------------------------------------------
+Mon Apr 22 13:49:04 UTC 2013 - [email protected]
+
+- support for the new polkit (Javascript rules file) (bnc#816478)
+- 0.3.38
+
+-------------------------------------------------------------------
Old:
----
webyast-software-0.3.37.gem
New:
----
40-default-webyast-software.rules
webyast-software-0.3.39.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-webyast-software.spec ++++++
--- /var/tmp/diff_new_pack.iExBMI/_old 2013-08-27 21:22:25.000000000 +0200
+++ /var/tmp/diff_new_pack.iExBMI/_new 2013-08-27 21:22:25.000000000 +0200
@@ -17,7 +17,7 @@
Name: rubygem-webyast-software
-Version: 0.3.37
+Version: 0.3.39
Release: 0
%define mod_name webyast-software
%define mod_full_name %{mod_name}-%{version}
@@ -55,6 +55,7 @@
Source1: org.opensuse.yast.modules.yapi.patches.policy
Source2: org.opensuse.yast.modules.yapi.packages.policy
Source3: org.opensuse.yast.modules.yapi.repositories.policy
+Source4: 40-default-webyast-software.rules
%package doc
Summary: RDoc documentation for %{mod_name}
@@ -104,6 +105,10 @@
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
install -m 0644 %SOURCE3 $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
mkdir -p $RPM_BUILD_ROOT/var/lib/webyast/software/licenses/accepted
@@ -115,6 +120,7 @@
%{__rm} -rf $RPM_BUILD_ROOT
%post
+%if %suse_version < 1230
#
# granting all permissions for root
#
@@ -125,11 +131,13 @@
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant --policy
org.freedesktop.packagekit.system-sources-configure >& /dev/null || true
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant --policy
org.freedesktop.packagekit.system-update >& /dev/null || true
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant --policy
org.freedesktop.packagekit.package-eula-accept >& /dev/null || true
+%endif
%restart_webyast
%postun
%webyast_remove_assets
+%webyast_plugin_postun
%files
@@ -147,6 +155,9 @@
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.patches.policy
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.packages.policy
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.repositories.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-software.rules
+%endif
%attr(775,%{webyast_user},root) /var/lib/webyast/software
%restart_script_name
++++++ 40-default-webyast-software.rules ++++++
// default permissions for "webyast" and "root" users
polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.yast.modules.yapi.packages.read"
|| action.id == "org.opensuse.yast.modules.yapi.patches.read"
|| action.id == "org.opensuse.yast.modules.yapi.patches.install"
|| action.id == "org.opensuse.yast.modules.yapi.repositories.read"
|| action.id == "org.opensuse.yast.modules.yapi.repositories.write"
) && subject.user == "root")
{
return polkit.Result.YES;
}
// permissions for actions done by webyast
if ((action.id == "org.freedesktop.packagekit.system-sources-configure"
|| action.id == "org.freedesktop.packagekit.system-update"
|| action.id == "org.freedesktop.packagekit.package-eula-accept"
) && subject.user == "webyast")
{
return polkit.Result.YES;
}
});
// vim: syntax=javascript
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]