summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-09-21 04:31:24 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-09-21 04:31:24 (GMT)
commit66164cae5507a2756da30ac3c4ae38861eb8b04c (patch)
tree49abe18a7db7cb46ede15f97b426a1f607df4580 /abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch
parent96e599df09b52ce336737b02564c5605ce749c6c (diff)
downloadlinhes_pkgbuild-66164cae5507a2756da30ac3c4ae38861eb8b04c.zip
linhes_pkgbuild-66164cae5507a2756da30ac3c4ae38861eb8b04c.tar.gz
linhes_pkgbuild-66164cae5507a2756da30ac3c4ae38861eb8b04c.tar.bz2
subversion: archsync, removed kwallet ang gnome support
Diffstat (limited to 'abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch')
-rw-r--r--abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch b/abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch
new file mode 100644
index 0000000..94ce89b
--- /dev/null
+++ b/abs/extra-testing/subversion/subversion.suppress.deprecation.warnings.patch
@@ -0,0 +1,22 @@
+diff -urN subversion-1.6.9/subversion/bindings/swig/python/svn/core.py subversion-1.6.9-fixed/subversion/bindings/swig/python/svn/core.py
+--- subversion-1.6.9/subversion/bindings/swig/python/svn/core.py 2009-02-13 11:22:26.000000000 -0500
++++ subversion-1.6.9-fixed/subversion/bindings/swig/python/svn/core.py 2010-02-08 07:46:29.000000000 -0500
+@@ -19,6 +19,7 @@
+ from libsvn.core import *
+ import libsvn.core as _libsvncore
+ import atexit as _atexit
++import warnings
+
+ class SubversionException(Exception):
+ def __init__(self, message=None, apr_err=None, child=None,
+@@ -44,7 +45,9 @@
+ Exception.__init__(self, *args)
+
+ self.apr_err = apr_err
+- self.message = message
++ with warnings.catch_warnings():
++ warnings.simplefilter("ignore", DeprecationWarning)
++ self.message = message
+ self.child = child
+ self.file = file
+ self.line = line