Changeset 1494 in ProjectBuilder for projects/casparbuster/devel/bin/cb
- Timestamp:
- Apr 30, 2012, 2:58:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/casparbuster/devel/bin/cb
r1490 r1494 257 257 $cbp = cb_plugin_get($p,$cbp); 258 258 # Adds mtime info to the plugin structure 259 foreach my $type ('files','dirs' ) {259 foreach my $type ('files','dirs','dirsandfiles') { 260 260 foreach my $f (keys %{$cbp->{$p}->{$type}}) { 261 261 my $tdir = $dest; … … 282 282 my $type = 'files'; 283 283 if (-d $fullsource) { 284 $type = 'dirs ';284 $type = 'dirsandfiles'; 285 285 } 286 286 die "ERROR: Only able to handle files or dirs with option --source\n" if ((! -d $fullsource) && (! -f $fullsource)); … … 321 321 # Check what in cbp is in the DB and deploy only if necessary 322 322 foreach my $k (keys %{$cbp}) { 323 foreach my $type ('files','dirs' ) {323 foreach my $type ('files','dirs','dirsandfiles') { 324 324 foreach my $o (keys %{$cbp->{$k}->{$type}}) { 325 325 # Compare with info from DB … … 353 353 my $curdate = time(); 354 354 foreach my $k (keys %{$cbp}) { 355 foreach my $type ('files','dirs') { 355 foreach my $type ('files','dirs','dirsandfiles') { 356 # TODO: for dirs we may remove the files below ? 356 357 foreach my $o ((keys %{$cbp->{$k}->{$type}})) { 357 358 if (not defined $cbp->{$k}->{$type}->{$o}->{'deleted'}) { … … 426 427 427 428 foreach my $k (keys %{$cbp}) { 428 foreach my $type ('files','dirs') { 429 foreach my $type ('files','dirs','dirsandfiles') { 430 # TODO: do we act recursively for dirsandfiles at least for uid/gid ? 429 431 foreach my $o ((keys %{$cbp->{$k}->{$type}})) { 430 432 if (not defined $cbp->{$k}->{$type}->{$o}->{'deleted'}) { … … 441 443 if (defined $cbp->{$k}->{'reloadscript'}) { 442 444 if ($debug) { 443 pb_log(1,"INFO: Executing (on $mac) sudo$cbp->{$k}->{'reloadscript'}\n");445 pb_log(1,"INFO: Executing (on $mac) $cbp->{$k}->{'reloadscript'}\n"); 444 446 } else { 445 &$func(" sudo$cbp->{$k}->{'reloadscript'}");447 &$func("$cbp->{$k}->{'reloadscript'}"); 446 448 } 447 449 }
Note:
See TracChangeset
for help on using the changeset viewer.