You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Remove extraneous use/include statements.
Use conditional loading to make docs work in the absence of LibC. Somehow this also required a use statement to be added. Perl, go figure.
This commit is contained in:
		| @@ -14,7 +14,6 @@ use Exporter qw(import); | ||||
| use Storable qw(dclone); | ||||
|  | ||||
| use pgBackRest::Common::Exception; | ||||
| use pgBackRest::Common::Ini; | ||||
| use pgBackRest::Common::Log; | ||||
| use pgBackRest::Common::String; | ||||
| use pgBackRest::Version; | ||||
| @@ -525,6 +524,10 @@ sub backrestConfig | ||||
|  | ||||
|     if ($self->{bExe} && $self->isRequired($oSection)) | ||||
|     { | ||||
|         # Load module dynamically | ||||
|         require pgBackRest::Common::Ini; | ||||
|         pgBackRest::Common::Ini->import(); | ||||
|  | ||||
|         my ($bCacheHit, $strCacheType, $hCacheKey, $hCacheValue) = $self->cachePop('cfg-' . PROJECT_EXE, $hCacheKey); | ||||
|  | ||||
|         if ($bCacheHit) | ||||
|   | ||||
| @@ -11,7 +11,6 @@ use Carp qw(confess); | ||||
| use Exporter qw(import); | ||||
|     our @EXPORT = qw(); | ||||
|  | ||||
| use pgBackRest::Common::Ini; | ||||
| use pgBackRest::Common::Log; | ||||
| use pgBackRest::Common::String; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user