[svn-commits] tzafrir: tools/trunk r5984 - /tools/trunk/xpp/dahdi_genconf

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Feb 8 05:04:00 CST 2009


Author: tzafrir
Date: Sun Feb  8 05:04:00 2009
New Revision: 5984

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=5984
Log:
dahdi_genconf: do reset default files list when command-line has files

This fixes a regression that was added whwn handling of R2 was added.
Originally: Xorcom rev 6683.

Modified:
    tools/trunk/xpp/dahdi_genconf

Modified: tools/trunk/xpp/dahdi_genconf
URL: http://svn.digium.com/svn-view/dahdi/tools/trunk/xpp/dahdi_genconf?view=diff&rev=5984&r1=5983&r2=5984
==============================================================================
--- tools/trunk/xpp/dahdi_genconf (original)
+++ tools/trunk/xpp/dahdi_genconf Sun Feb  8 05:04:00 2009
@@ -749,7 +749,13 @@
 }
 
 sub parse_args {
-	push(@ARGV, 'unicall') if $pri_connection_type eq 'R2';
+	if (not @ARGV) {
+		# No files given. Use the defaults.
+		push(@ARGV, 'unicall') if $pri_connection_type eq 'R2';
+		return;
+	}
+
+	@default_files = ();
 	for my $file (@ARGV) {
 		die "$0: Unknown file '$file'" unless defined $files{$file};
 		push @default_files, $file;




More information about the svn-commits mailing list