From: Rob H. <for...@us...> - 2002-03-01 01:09:42
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv6541/bin Modified Files: sandweb.cgi Log Message: * added support for $repo_name in user's sandbox, this needed to be changed in _alot_ of places.. urgh :P Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.235 retrieving revision 1.236 diff -U2 -r1.235 -r1.236 --- sandweb.cgi 28 Feb 2002 07:46:19 -0000 1.235 +++ sandweb.cgi 1 Mar 2002 01:09:38 -0000 1.236 @@ -922,5 +922,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1041,5 +1041,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); if ( $file->get_file_type() ne "Text" ) { @@ -1052,9 +1052,9 @@ ); } - $log->debug("reading $users_dir/$username/$module_name$location/$filename"); + $log->debug("reading $users_dir/$username/$repo_name/$module_name$location/$filename"); my $content = $file->file_read(); - $log->debug("closing $users_dir/$username/$module_name$location/$filename"); + $log->debug("closing $users_dir/$username/$repo_name/$module_name$location/$filename"); $content = $ui->get_menu( MENU => 'edit_file', @@ -1248,5 +1248,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); $log->debug("editing file : $filename"); @@ -1255,5 +1255,5 @@ $log->debug("saving edited file : $filename"); - $log->debug("editing $users_dir/$username/$module_name$location/$filename"); + $log->debug("editing $users_dir/$username/$repo_name/$module_name$location/$filename"); $file->file_write( 'location' => "$location", @@ -1312,5 +1312,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1331,5 +1331,5 @@ 'log_obj' => $log, 'filename' => $entry, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1387,5 +1387,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1430,5 +1430,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1480,5 +1480,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); $file->upload( @@ -1535,5 +1535,5 @@ 'log_obj' => $log, 'filename' => $filename, - 'location' => "$users_dir/$username/$module_name$location", + 'location' => "$users_dir/$username/$repo_name/$module_name$location", ); @@ -1621,10 +1621,10 @@ root => $repo_root, repo_type => $repo_type, - sandbox => "$users_dir/$username/$module_name/$location", + sandbox => "$users_dir/$username/$repo_name/$module_name/$location", ); $log->debug("Repo name: $repo_name"); $log->debug("Repo root: $repo_root"); - $log->debug("VCS sandbox: $users_dir/$username/$module_name/$location"); + $log->debug("VCS sandbox: $users_dir/$username/$repo_name/$module_name/$location"); $log->debug("Repo type: $repo_type"); $log->debug("Filename(s): @filename"); |