Open the DB using Hydra::Model::DB->new
This gets rid of the openHydraDB function and ensures that we open the database in a consistent way. Also drop the PostgreSQL sequence hacks. They don't seem to be necessary anymore.
This commit is contained in:
		| @@ -6,6 +6,7 @@ use XML::Simple; | ||||
| use POSIX qw(strftime); | ||||
| use IPC::Run; | ||||
| use Nix::Store; | ||||
| use Hydra::Model::DB; | ||||
| use Hydra::Helper::Nix; | ||||
| use Digest::SHA qw(sha256_hex); | ||||
| use File::Basename; | ||||
| @@ -22,7 +23,7 @@ our @EXPORT = qw( | ||||
|  | ||||
|  | ||||
| sub scmPath { | ||||
|     return getHydraPath . "/scm" ; | ||||
|     return Hydra::Model::DB::getHydraPath . "/scm" ; | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user