[freeside-commits] freeside/FS/FS h_cust_svc.pm, 1.8, 1.9 part_export.pm, 1.101, 1.102 part_pkg.pm, 1.73, 1.74

Ivan,,, ivan at wavetail.420.am
Fri Jul 18 15:28:11 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv8180

Modified Files:
	h_cust_svc.pm part_export.pm part_pkg.pm 
Log Message:
some random cleanups

Index: part_export.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export.pm,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- part_export.pm	12 Mar 2008 16:24:33 -0000	1.101
+++ part_export.pm	18 Jul 2008 22:28:09 -0000	1.102
@@ -411,6 +411,7 @@
 #  '';
 #}
 
+#false laziness w/part_pkg & cdr
 foreach my $INC ( @INC ) {
   foreach my $file ( glob("$INC/FS/part_export/*.pm") ) {
     warn "attempting to load export info from $file\n" if $DEBUG;

Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- part_pkg.pm	9 Jul 2008 20:37:14 -0000	1.73
+++ part_pkg.pm	18 Jul 2008 22:28:09 -0000	1.74
@@ -1029,6 +1029,7 @@
 
 =cut
 
+#false laziness w/part_export & cdr
 my %info;
 foreach my $INC ( @INC ) {
   warn "globbing $INC/FS/part_pkg/*.pm\n" if $DEBUG;
@@ -1046,8 +1047,7 @@
       next;
     }
     unless ( keys %$info ) {
-      warn "no %info hash found in FS::part_pkg::$mod, skipping\n"
-        unless $mod =~ /^(passwdfile|null)$/; #hack but what the heck
+      warn "no %info hash found in FS::part_pkg::$mod, skipping\n";
       next;
     }
     warn "got plan info from FS::part_pkg::$mod: $info\n" if $DEBUG;
@@ -1060,7 +1060,7 @@
 }
 
 tie %plans, 'Tie::IxHash',
-  map { $_ => $info{$_} }
+  map  { $_ => $info{$_} }
   sort { $info{$a}->{'weight'} <=> $info{$b}->{'weight'} }
   keys %info;
 

Index: h_cust_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/h_cust_svc.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- h_cust_svc.pm	11 Feb 2008 02:36:53 -0000	1.8
+++ h_cust_svc.pm	18 Jul 2008 22:28:09 -0000	1.9
@@ -111,8 +111,6 @@
 # _upgrade_data
 #
 # Used by FS::Upgrade to migrate to a new database.
-#
-#
 
 use FS::UID qw( driver_name dbh );
 



More information about the freeside-commits mailing list