[interchange-cvs] interchange - jon modified lib/Vend/Ship.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri Sep 12 16:45:00 EDT 2003


User:      jon
Date:      2003-09-12 19:45:49 GMT
Modified:  lib/Vend Ship.pm
Log:
Allow comment lines in shipping.asc, with leading # mark.

Revision  Changes    Path
2.5       +2 -2      interchange/lib/Vend/Ship.pm


rev 2.5, prev_rev 2.4
Index: Ship.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Ship.pm,v
retrieving revision 2.4
retrieving revision 2.5
diff -u -u -r2.4 -r2.5
--- Ship.pm	19 Aug 2003 15:24:47 -0000	2.4
+++ Ship.pm	12 Sep 2003 19:45:49 -0000	2.5
@@ -1,6 +1,6 @@
 # Vend::Ship - Interchange shipping code
 # 
-# $Id: Ship.pm,v 2.4 2003/08/19 15:24:47 jon Exp $
+# $Id: Ship.pm,v 2.5 2003/09/12 19:45:49 jon Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -206,7 +206,7 @@
 			next;
 		}
 
-		next unless /\S/;
+		next if ! /\S/ or /^\s*#/;
 		s/\s+$//;
 		if(/^[^\s:]+\t/) {
 			push (@shipping, [@line]) if @line;







More information about the interchange-cvs mailing list