[ruby-hdfeos5] 07/08: Add patch to fix 'length' typo.

Bas Couwenberg sebastic at debian.org
Fri Dec 2 15:03:50 UTC 2016


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

sebastic pushed a commit to branch master
in repository ruby-hdfeos5.

commit b94c4604a2ff4dc1a1faaf1c514e9d8010e850db
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Dec 2 15:55:40 2016 +0100

    Add patch to fix 'length' typo.
---
 debian/changelog                      |   1 +
 debian/patches/0005-length-typo.patch | 171 ++++++++++++++++++++++++++++++++++
 debian/patches/series                 |   1 +
 3 files changed, 173 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 47a224c..f6ec6db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ ruby-hdfeos5 (1.2-7) UNRELEASED; urgency=medium
   * Update watch file to handle common issues.
   * Bump Standards-Version to 3.9.8, no changes.
   * Enable parallel builds.
+  * Add patch to fix 'length' typo.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 02 Dec 2016 15:34:49 +0100
 
diff --git a/debian/patches/0005-length-typo.patch b/debian/patches/0005-length-typo.patch
new file mode 100644
index 0000000..8bdac6c
--- /dev/null
+++ b/debian/patches/0005-length-typo.patch
@@ -0,0 +1,171 @@
+Description: Fix 'lengh' typo, replace with 'length'.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/hdfeos5gd_wrap.c
++++ b/hdfeos5gd_wrap.c
+@@ -2335,7 +2335,7 @@ hdfeos5_gdwritefield_char(VALUE mod, VAL
+     i_data = ALLOCA_N(unsigned char,c_edge_all);
+     for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2431,7 +2431,7 @@ hdfeos5_gdwritefield_short(VALUE mod, VA
+ 	i_data = ALLOCA_N(short,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2527,7 +2527,7 @@ hdfeos5_gdwritefield_int(VALUE mod, VALU
+     i_data = ALLOCA_N(int,c_edge_all);
+     for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2623,7 +2623,7 @@ hdfeos5_gdwritefield_long(VALUE mod, VAL
+     i_data = ALLOCA_N(long,c_edge_all);
+     for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2719,7 +2719,7 @@ hdfeos5_gdwritefield_float(VALUE mod, VA
+     i_data = ALLOCA_N(float,c_edge_all);
+     for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2815,7 +2815,7 @@ hdfeos5_gdwritefield_double(VALUE mod, V
+     i_data = ALLOCA_N(double,c_edge_all);
+     for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+     status = HE5_GDwritefield(i_gridid, i_fldname, c_start, c_stride, c_edge, i_data);
+--- a/hdfeos5sw_wrap.c
++++ b/hdfeos5sw_wrap.c
+@@ -3004,7 +3004,7 @@ hdfeos5_swwritefield_char(VALUE mod, VAL
+ 	i_data = ALLOCA_N(unsigned char,(c_edge_all +1));
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -3100,7 +3100,7 @@ hdfeos5_swwritefield_short(VALUE mod, VA
+ 	i_data = ALLOCA_N(short,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -3196,7 +3196,7 @@ hdfeos5_swwritefield_int(VALUE mod, VALU
+ 	i_data = ALLOCA_N(int,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -3292,7 +3292,7 @@ hdfeos5_swwritefield_long(VALUE mod, VAL
+ 	i_data = ALLOCA_N(long,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -3388,7 +3388,7 @@ hdfeos5_swwritefield_float(VALUE mod, VA
+ 	i_data = ALLOCA_N(float,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -3484,7 +3484,7 @@ hdfeos5_swwritefield_double(VALUE mod, V
+ 	i_data = ALLOCA_N(double,c_edge_all);
+ 	for(i=0;i<c_edge_all;i++){i_data[i]=scalar;}
+       } else if(len != c_edge_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+--- a/hdfeos5za_wrap.c
++++ b/hdfeos5za_wrap.c
+@@ -1894,7 +1894,7 @@ hdfeos5_zawrite_char(VALUE mod, VALUE st
+ 	i_data = ALLOCA_N(unsigned char,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -1990,7 +1990,7 @@ hdfeos5_zawrite_short(VALUE mod, VALUE s
+ 	i_data = ALLOCA_N(short,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2086,7 +2086,7 @@ hdfeos5_zawrite_int(VALUE mod, VALUE sta
+ 	i_data = ALLOCA_N(int,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2182,7 +2182,7 @@ hdfeos5_zawrite_long(VALUE mod, VALUE st
+ 	i_data = ALLOCA_N(long,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2278,7 +2278,7 @@ hdfeos5_zawrite_float(VALUE mod, VALUE s
+ 	i_data = ALLOCA_N(float,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
+@@ -2374,7 +2374,7 @@ hdfeos5_zawrite_double(VALUE mod, VALUE
+ 	i_data = ALLOCA_N(double,c_count_all);
+ 	for(i=0;i<c_count_all;i++){i_data[i]=scalar;}
+       } else if(len != c_count_all) {
+-          rb_raise(rb_eHE5Error, "lengh of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
++          rb_raise(rb_eHE5Error, "length of the array does not agree with that of the subset [%s:%d]",__FILE__,__LINE__); 
+       }
+     }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 829d4ef..5366f91 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Fix-test-data-path.patch
 0003-Fix-printf-debugging.patch
 0004-hdf5-dir.patch
+0005-length-typo.patch

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



More information about the Pkg-grass-devel mailing list