libstore: remove realisation query support
only a daemon wire operation and the perl bindings could initiate these queries at this point. the daemon ops can throw an error instead (as if the daemon were older) and realistically should never be queries if the client hasn't evaluated a ca derivation on a given store, and perl code is best off dying early. nothing known except hydra uses these bdingins anyway, and we control our hydra so we don't need backward compat code. Change-Id: Ia7df27aba59a4a4a692ae014f407415f3bea63f2
This commit is contained in:
@@ -22,7 +22,6 @@ our @EXPORT = qw(
|
||||
derivationFromPath
|
||||
addTempRoot
|
||||
getBinDir getStoreDir
|
||||
queryRawRealisation
|
||||
);
|
||||
|
||||
our $VERSION = '0.15';
|
||||
|
||||
@@ -131,18 +131,6 @@ SV * queryPathInfo(char * path, int base32)
|
||||
croak("%s", e.what());
|
||||
}
|
||||
|
||||
SV * queryRawRealisation(char * outputId)
|
||||
PPCODE:
|
||||
try {
|
||||
auto realisation = aio().blockOn(store()->queryRealisation(DrvOutput::parse(outputId)));
|
||||
if (realisation)
|
||||
XPUSHs(sv_2mortal(newSVpv(realisation->toJSON().dump().c_str(), 0)));
|
||||
else
|
||||
XPUSHs(sv_2mortal(newSVpv("", 0)));
|
||||
} catch (Error & e) {
|
||||
croak("%s", e.what());
|
||||
}
|
||||
|
||||
|
||||
SV * queryPathFromHashPart(char * hashPart)
|
||||
PPCODE:
|
||||
|
||||
Reference in New Issue
Block a user