[netcdf4-python] 01/02: Patch nc4tonc3 tool to fix indentation failure

Ross Gammon ross-guest at moszumanska.debian.org
Sun Mar 22 10:54:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

ross-guest pushed a commit to branch master
in repository netcdf4-python.

commit b8664e380e741cd271d897c5481ad042b99916c1
Author: Ross Gammon <rossgammon at mail.dk>
Date:   Sun Mar 22 11:50:12 2015 +0100

    Patch nc4tonc3 tool to fix indentation failure
---
 debian/patches/nc4tonc3-indentation.patch | 22 ++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/nc4tonc3-indentation.patch b/debian/patches/nc4tonc3-indentation.patch
new file mode 100644
index 0000000..509e984
--- /dev/null
+++ b/debian/patches/nc4tonc3-indentation.patch
@@ -0,0 +1,22 @@
+Description: nc4tonc3 -h fails due to indentation errors
+ Tabs used instead of spaces.
+Bug: https://github.com/Unidata/netcdf4-python/issues/378
+Forwarded: https://github.com/Unidata/netcdf4-python/pull/379
+Author: Ross Gammon <rossgammon at mail.dk>
+Last-Update: 2015-03-22
+
+--- netcdf4-python.orig/utils/nc4tonc3
++++ netcdf4-python/utils/nc4tonc3
+@@ -38,9 +38,9 @@
+             FillValue = None 
+         var = ncfile3.createVariable(varname,ncvar.dtype,ncvar.dimensions,fill_value=FillValue)
+         # fill variable attributes.
+-	attdict = ncvar.__dict__
+-	if '_FillValue' in attdict: del attdict['_FillValue']
+-	var.setncatts(attdict)
++        attdict = ncvar.__dict__
++        if '_FillValue' in attdict: del attdict['_FillValue']
++        var.setncatts(attdict)
+         #for attname in ncvar.ncattrs():
+         #    if attname == '_FillValue': continue
+         #    setattr(var,attname,getattr(ncvar,attname))
diff --git a/debian/patches/series b/debian/patches/series
index 7ae9f23..e2d4fbc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 cython-clean.patch
+nc4tonc3-indentation.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf4-python.git



More information about the Pkg-grass-devel mailing list