r12265 - in /packages/unstable/glabels/debian: changelog patches/11_cepnet.patch

otavio at users.alioth.debian.org otavio at users.alioth.debian.org
Mon Aug 6 19:57:15 UTC 2007


Author: otavio
Date: Mon Aug  6 19:57:15 2007
New Revision: 12265

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12265
Log:
* Add support to CEPNet. Thanks to Mário Meyer <mario at meyer.eti.br> for
  the patch (closes: #436288)

Added:
    packages/unstable/glabels/debian/patches/11_cepnet.patch
Modified:
    packages/unstable/glabels/debian/changelog

Modified: packages/unstable/glabels/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/glabels/debian/changelog?rev=12265&op=diff
==============================================================================
--- packages/unstable/glabels/debian/changelog (original)
+++ packages/unstable/glabels/debian/changelog Mon Aug  6 19:57:15 2007
@@ -8,7 +8,11 @@
   * Set maintainer to Debian GNOME Maintainers.
   * Wrap build-deps and deps.
 
- -- Loic Minier <lool at dooz.org>  Sun, 22 Jul 2007 13:35:31 +0200
+  [ Otavio Salvador ]
+  * Add support to CEPNet. Thanks to Mário Meyer <mario at meyer.eti.br> for
+    the patch (closes: #436288)
+
+ -- Otavio Salvador <otavio at debian.org>  Mon, 06 Aug 2007 16:57:02 -0300
 
 glabels (2.1.3-1) unstable; urgency=low
 

Added: packages/unstable/glabels/debian/patches/11_cepnet.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/glabels/debian/patches/11_cepnet.patch?rev=12265&op=file
==============================================================================
--- packages/unstable/glabels/debian/patches/11_cepnet.patch (added)
+++ packages/unstable/glabels/debian/patches/11_cepnet.patch Mon Aug  6 19:57:15 2007
@@ -1,0 +1,38 @@
+Index: src/bc-postnet.c
+===================================================================
+--- src/bc-postnet.c	(revision 661)
++++ src/bc-postnet.c	(working copy)
+@@ -94,6 +94,7 @@
+ 	/* Validate code length for all subtypes. */
+ 	if ( (g_strcasecmp (id, "POSTNET") == 0) ) {
+ 		if (!is_length_valid (digits, 5) &&
++		    !is_length_valid (digits, 8) &&
+ 		    !is_length_valid (digits, 9) &&
+ 		    !is_length_valid (digits, 11)) {
+ 			return NULL;
+@@ -114,6 +115,11 @@
+ 			return NULL;
+ 		}
+ 	}
++	if ( (g_strcasecmp (id, "CEPNET") == 0) ) {
++		if (!is_length_valid (digits, 8)) {
++			return NULL;
++		}
++	}
+ 
+ 	/* First get code string */
+ 	code = postnet_code (digits);
+Index: src/bc.c
+===================================================================
+--- src/bc.c	(revision 661)
++++ src/bc.c	(working copy)
+@@ -76,6 +76,9 @@
+ 	{ "POSTNET-11", N_("POSTNET-11 (DPBC)"), gl_barcode_postnet_new,
+ 	  FALSE, FALSE, TRUE, FALSE, "12345-6789-12", FALSE, 11},
+ 
++	{ "CEPNET", N_("CEPNET"), gl_barcode_postnet_new,
++	  FALSE, FALSE, TRUE, FALSE, "12345-678", FALSE, 8},
++
+ 	{ "EAN", N_("EAN (any)"), gl_barcode_gnubarcode_new,
+ 	  TRUE, TRUE, TRUE, FALSE, "000000000000 00000", FALSE, 17},
+ 




More information about the pkg-gnome-commits mailing list