@@ -211,9 +211,12 @@ static int comparePriorities(EvalState & state,
211
211
212
212
static bool isPrebuilt (EvalState & state, const DrvInfo & elem)
213
213
{
214
+ assert (false );
215
+ #if 0
214
216
return
215
217
store->isValidPath(elem.queryOutPath(state)) ||
216
218
store->hasSubstitutes(elem.queryOutPath(state));
219
+ #endif
217
220
}
218
221
219
222
@@ -931,8 +934,7 @@ static void opQuery(Globals & globals,
931
934
932
935
933
936
/* Query which paths have substitutes. */
934
- SubstitutablePathInfos subs;
935
- PathSet validPaths;
937
+ PathSet validPaths, substitutablePaths;
936
938
if (printStatus) {
937
939
PathSet paths;
938
940
foreach (vector<DrvInfo>::iterator, i, elems2)
@@ -943,7 +945,7 @@ static void opQuery(Globals & globals,
943
945
i->setFailed ();
944
946
}
945
947
validPaths = store->queryValidPaths (paths);
946
- store->querySubstitutablePathInfos (paths, subs );
948
+ substitutablePaths = store->querySubstitutablePaths (paths);
947
949
}
948
950
949
951
@@ -969,7 +971,7 @@ static void opQuery(Globals & globals,
969
971
970
972
if (printStatus) {
971
973
Path outPath = i->queryOutPath (globals.state );
972
- bool hasSubs = subs .find (outPath) != subs .end ();
974
+ bool hasSubs = substitutablePaths .find (outPath) != substitutablePaths .end ();
973
975
bool isInstalled = installed.find (outPath) != installed.end ();
974
976
bool isValid = validPaths.find (outPath) != validPaths.end ();
975
977
if (xmlOutput) {
0 commit comments