* Extra bit S' in
--query --status' output: show whether there are
any substitutes for the derivation.
This commit is contained in:
parent
1109ea0680
commit
840551ebdb
1 changed files with 3 additions and 1 deletions
|
@ -606,10 +606,12 @@ static void opQuery(Globals & globals,
|
|||
installedPaths.insert(i->second.outPath);
|
||||
|
||||
for (DrvInfos::iterator i = drvs.begin(); i != drvs.end(); ++i) {
|
||||
cout << format("%1%%2% %3%\n")
|
||||
Paths subs = querySubstitutes(i->second.drvPath);
|
||||
cout << format("%1%%2%%3% %4%\n")
|
||||
% (installedPaths.find(i->second.outPath)
|
||||
!= installedPaths.end() ? 'I' : '-')
|
||||
% (isValidPath(i->second.outPath) ? 'P' : '-')
|
||||
% (subs.size() > 0 ? 'S' : '-')
|
||||
% i->second.name;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue