From 1ff5b8ec0e55685b6e47e358601c22fec1c3998b Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 27 Jan 2013 21:26:45 +0000 Subject: [PATCH] remove global ::, allow test as argument git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1374 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/lib/bin/auto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/mongoose/lib/bin/auto b/var/mongoose/lib/bin/auto index 57e8065..16fd8a6 100755 --- a/var/mongoose/lib/bin/auto +++ b/var/mongoose/lib/bin/auto @@ -249,7 +249,7 @@ proc scan {dir attr {force 0}} {{indent 0}} { if {$::testing} { puts "[string repeat " " $indent]\[$dir]" } #if {[string match {\[*} $dir]} continue - if {$dir eq $::dustbin} { + if {$dir eq $dustbin} { puts "Dustbin, skipping." return } @@ -276,6 +276,7 @@ proc scan {dir attr {force 0}} {{indent 0}} { set root [system mediaroot] if {[llength $argv] > 0} { + if {[lindex $argv 0] eq "test"} { set testing 1 } foreach arg $argv { scan $root $arg } } else { foreach arg {dedup decrypt shrink mpg} {