fix build with swig 3.0.3 and later OBS-URL: https://build.opensuse.org/request/show/286999 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=195
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
Index: subversion-1.8.11/subversion/bindings/swig/include/proxy.swg
|
|
===================================================================
|
|
--- subversion-1.8.11.orig/subversion/bindings/swig/include/proxy.swg
|
|
+++ subversion-1.8.11/subversion/bindings/swig/include/proxy.swg
|
|
@@ -83,13 +83,10 @@
|
|
|
|
value = _swig_getattr(self, self.__class__, name)
|
|
|
|
- # If we got back a different object than we have, we need to copy all our
|
|
- # metadata into it, so that it looks identical
|
|
members = self.__dict__.get("_members")
|
|
if members is not None:
|
|
_copy_metadata_deep(value, members.get(name))
|
|
|
|
- # Verify that the new object is good
|
|
_assert_valid_deep(value)
|
|
|
|
return value
|
|
@@ -98,9 +95,6 @@
|
|
"""Set an attribute on this object"""
|
|
self.assert_valid()
|
|
|
|
- # Save a copy of the object, so that the garbage
|
|
- # collector won't kill the object while it's in
|
|
- # SWIG-land
|
|
self.__dict__.setdefault("_members",{})[name] = value
|
|
|
|
return _swig_setattr(self, self.__class__, name, value)
|