Hello community,

here is the log from the commit of package python-slip for openSUSE:Factory 
checked in at 2017-05-18 20:51:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-slip (Old)
 and      /work/SRC/openSUSE:Factory/.python-slip.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-slip"

Thu May 18 20:51:32 2017 rev:2 rq:495759 version:0.6.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-slip/python-slip.changes  2016-01-28 
17:23:52.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-slip.new/python-slip.changes     
2017-05-18 20:51:44.402302714 +0200
@@ -1,0 +2,8 @@
+Wed May 17 14:32:37 UTC 2017 - mchand...@suse.de
+
+- Version bump to 0.6.5
+  * Fix org.freedesktop.DBus.Error.ServiceUnknown errors without
+    polkitd (gh#nphilipp/python-slip#4)
+  * cope with changes in supplied upload_url
+
+-------------------------------------------------------------------

Old:
----
  python-slip-0.6.4.tar.bz2

New:
----
  python-slip-0.6.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-slip.spec ++++++
--- /var/tmp/diff_new_pack.6fXnSV/_old  2017-05-18 20:51:45.046211859 +0200
+++ /var/tmp/diff_new_pack.6fXnSV/_new  2017-05-18 20:51:45.050211294 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-slip
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           python-slip
-Version:        0.6.4
+Version:        0.6.5
 Release:        0
 Summary:        Miscellaneous convenience, extension and workaround code for 
Python
 License:        GPL-2.0+
@@ -78,7 +78,7 @@
 make %{?_smp_mflags}
 
 %install
-make install DESTDIR=%{buildroot}
+%make_install
 
 %fdupes %{buildroot}/%{python_sitelib}
 

++++++ python-slip-0.6.4.tar.bz2 -> python-slip-0.6.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slip-0.6.4/github_rules.mk 
new/python-slip-0.6.5/github_rules.mk
--- old/python-slip-0.6.4/github_rules.mk       2015-09-18 22:25:42.000000000 
+0200
+++ new/python-slip-0.6.5/github_rules.mk       2017-05-16 12:14:36.000000000 
+0200
@@ -62,7 +62,7 @@
                        --header "Content-Type: $$mimetype" \
                        --header "Accept: 
application/vnd.github.manifold-preview" \
                        --data-binary "@$(PKGARCHIVE)" \
-                       "$${upload_url%\{\?name\}}?name=$(PKGARCHIVE)")"; \
+                       "$${upload_url%\{\?*}?name=$(PKGARCHIVE)")"; \
                if [ "$$(echo "$$upload_out" | jq .state)" = "\"uploaded\"" ]; 
then \
                        echo done; \
                else \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slip-0.6.4/python-slip.spec 
new/python-slip-0.6.5/python-slip.spec
--- old/python-slip-0.6.4/python-slip.spec      2015-09-18 22:25:42.000000000 
+0200
+++ new/python-slip-0.6.5/python-slip.spec      2017-05-16 12:14:36.000000000 
+0200
@@ -1,5 +1,5 @@
 Name:       python-slip
-Version:    0.6.4
+Version:    0.6.5
 Release:    1%{?dist}
 Summary:    Convenience, extension and workaround code for Python 2.x
 
@@ -157,6 +157,9 @@
 %{python2_sitelib}/slip.gtk-%{version}-py%{python2_version}.egg-info
 
 %changelog
+* Tue May 16 2017 Nils Philippsen <n...@redhat.com> - 0.6.5-1
+- cope better with missing polkitd (#1393488)
+
 * Fri Sep 18 2015 Nils Philippsen <n...@redhat.com> - 0.6.4-1
 - util.files.overwrite_safely(): preserve ownership
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-slip-0.6.4/slip/dbus/polkit.py 
new/python-slip-0.6.5/slip/dbus/polkit.py
--- old/python-slip-0.6.4/slip/dbus/polkit.py   2015-09-18 22:25:42.000000000 
+0200
+++ new/python-slip-0.6.5/slip/dbus/polkit.py   2017-05-16 12:14:36.000000000 
+0200
@@ -206,17 +206,17 @@
     @property
     def _interface(self):
         if not PolKit.__interface:
-            PolKit.__interface = dbus.Interface(self._bus.get_object(
-                self._dbus_name, self._dbus_path),
-                self._dbus_interface)
+            try:
+                PolKit.__interface = dbus.Interface(self._bus.get_object(
+                    self._dbus_name, self._dbus_path),
+                    self._dbus_interface)
+            except dbus.DBusException:
+                pass
         return PolKit.__interface
 
     @property
     def _polkit_present(self):
-        try:
-            return bool(self._interface)
-        except dbus.DBusException:
-            return False
+        return bool(self._interface)
 
     def __dbus_system_bus_name_uid(self, system_bus_name):
         bus_object = self._bus.get_object(
@@ -258,7 +258,7 @@
         challenge=True, details={}):
 
         if not self._polkit_present:
-            reply_handler(
+            return reply_handler(
                 action_id is None or
                 self.__dbus_system_bus_name_uid(system_bus_name) == 0)
 


Reply via email to