You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Storage and IO layer refactor:
Refactor storage layer to allow for new repository filesystems using drivers. (Reviewed by Cynthia Shang.) Refactor IO layer to allow for new compression formats, checksum types, and other capabilities using filters. (Reviewed by Cynthia Shang.)
This commit is contained in:
		| @@ -19,7 +19,6 @@ use Storable qw(dclone); | ||||
| use pgBackRest::Common::Exception; | ||||
| use pgBackRest::Common::Log; | ||||
| use pgBackRest::Common::String; | ||||
| use pgBackRest::FileCommon; | ||||
| use pgBackRest::Version; | ||||
|  | ||||
| use pgBackRestTest::Common::ExecuteTest; | ||||
| @@ -98,9 +97,10 @@ sub process | ||||
|     copy("$self->{oManifest}{strDocPath}/resource/latex/cds-logo.eps", "$self->{strLatexPath}/logo.eps") | ||||
|         or confess &log(ERROR, "unable to copy logo"); | ||||
|  | ||||
|     my $strLatex = $self->{oManifest}->variableReplace(fileStringRead($self->{strPreambleFile}), 'latex') . "\n"; | ||||
|     my $strLatex = $self->{oManifest}->variableReplace( | ||||
|         ${$self->{oManifest}->storage()->get($self->{strPreambleFile})}, 'latex') . "\n"; | ||||
|  | ||||
|     # !!! Temp hack for underscores in filename | ||||
|     # ??? Temp hack for underscores in filename | ||||
|     $strLatex =~ s/pgaudit\\\_doc/pgaudit\_doc/g; | ||||
|  | ||||
|     foreach my $strPageId ($self->{oManifest}->renderOutList(RENDER_TYPE_PDF)) | ||||
| @@ -143,7 +143,7 @@ sub process | ||||
|  | ||||
|     my $strLatexFileName = $self->{oManifest}->variableReplace("$self->{strLatexPath}/" . $$oRender{file} . '.tex'); | ||||
|  | ||||
|     fileStringWrite($strLatexFileName, $strLatex, false); | ||||
|     $self->{oManifest}->storage()->put($strLatexFileName, $strLatex); | ||||
|  | ||||
|     executeTest("pdflatex -output-directory=$self->{strLatexPath} -shell-escape $strLatexFileName", | ||||
|                 {bSuppressStdErr => true}); | ||||
|   | ||||
| @@ -15,7 +15,6 @@ use pgBackRest::Common::Ini; | ||||
| use pgBackRest::Common::Log; | ||||
| use pgBackRest::Common::String; | ||||
| use pgBackRest::Config::ConfigHelp; | ||||
| use pgBackRest::FileCommon; | ||||
|  | ||||
| use BackRestDoc::Common::DocManifest; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user