version 1.5, 2011/08/30 08:30:42 |
version 1.6, 2011/12/21 09:19:22 |
|
|
$remotepaths[$i] =~ s/\/mnt\/maket/\/mnt\/rmt_maket/; |
$remotepaths[$i] =~ s/\/mnt\/maket/\/mnt\/rmt_maket/; |
} |
} |
|
|
if(-e $remotepaths[$i] || -e $remotepaths[$i] . '.rar') |
# if(-e $remotepaths[$i] || -e $remotepaths[$i] . '.rar') |
{ |
# { |
log::error("Remote file $remotepaths[$i] or $remotepaths[$i].rar already exists"); |
# log::error("Remote file $remotepaths[$i] or $remotepaths[$i].rar already exists"); |
db::change_status($dbids[$i], 1); |
# db::change_status($dbids[$i], 1); |
} |
# } |
else |
# else |
{ |
# { |
# In this place we must be sure that local file is ok |
# In this place we must be sure that local file is ok |
if( -e $localpaths[$i] ) |
if( -e $localpaths[$i] ) |
{ |
{ |
|
|
log::zayavki("Can not open local file $localpaths[$i]"); |
log::zayavki("Can not open local file $localpaths[$i]"); |
|
|
} |
} |
} |
# } |
|
|
# next iteration of 'while' and increment of $i |
# next iteration of 'while' and increment of $i |
$i++; |
$i++; |