Commit 728390aa authored by Eric Cano's avatar Eric Cano
Browse files

bug #72215: Remove the TAPEGATEWAYREQUEST table from the schema, and drop the...

bug #72215: Remove the TAPEGATEWAYREQUEST table from the schema, and drop the triggers that populate it.

More small fixes.
parent c0bca172
...@@ -255,14 +255,14 @@ sub rfcp_localfile ( $$ ) ...@@ -255,14 +255,14 @@ sub rfcp_localfile ( $$ )
} }
my $local = $local_files[$local_index]->{name}; my $local = $local_files[$local_index]->{name};
my $remote = $dest; my $remote = $dest;
if ( $local =~ /\/[^\/]*$/ ) { if ( $local =~ /\/([^\/]*)$/ ) {
$remote .= "/".$1; $remote .= "/".$1;
} else { } else {
die "Wrong file path in rfcp_localfile"; die "Wrong file path in rfcp_localfile";
} }
`su $environment{username} -c \"STAGE_SVCCLASS=dev rfcp $local $remote\"`; `su $environment{username} -c \"STAGE_SVCCLASS=dev rfcp $local $remote\"`;
my %remote_entry = ( 'name' => $remote, my %remote_entry = ( 'name' => $remote,
'type' => 'type' => "file",
'size' => $local_files[$local_index]->{size}, 'size' => $local_files[$local_index]->{size},
'adler32' => $local_files[$local_index]->{size}, 'adler32' => $local_files[$local_index]->{size},
'status' => 'rfcped' ); 'status' => 'rfcped' );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment