mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Merge branch 'master' into no-manifests
This commit is contained in:
commit
8c79100839
50 changed files with 343 additions and 307 deletions
|
@ -1,5 +1,4 @@
|
|||
#ifndef __DOTGRAPH_H
|
||||
#define __DOTGRAPH_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
|
@ -8,5 +7,3 @@ namespace nix {
|
|||
void printDotGraph(const PathSet & roots);
|
||||
|
||||
}
|
||||
|
||||
#endif /* !__DOTGRAPH_H */
|
||||
|
|
|
@ -746,18 +746,12 @@ static void showOptimiseStats(OptimiseStats & stats)
|
|||
files with the same contents. */
|
||||
static void opOptimise(Strings opFlags, Strings opArgs)
|
||||
{
|
||||
if (!opArgs.empty())
|
||||
if (!opArgs.empty() || !opFlags.empty())
|
||||
throw UsageError("no arguments expected");
|
||||
|
||||
bool dryRun = false;
|
||||
|
||||
foreach (Strings::iterator, i, opFlags)
|
||||
if (*i == "--dry-run") dryRun = true;
|
||||
else throw UsageError(format("unknown flag `%1%'") % *i);
|
||||
|
||||
OptimiseStats stats;
|
||||
try {
|
||||
ensureLocalStore().optimiseStore(dryRun, stats);
|
||||
ensureLocalStore().optimiseStore(stats);
|
||||
} catch (...) {
|
||||
showOptimiseStats(stats);
|
||||
throw;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __XMLGRAPH_H
|
||||
#define __XMLGRAPH_H
|
||||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
|
@ -8,5 +7,3 @@ namespace nix {
|
|||
void printXmlGraph(const PathSet & roots);
|
||||
|
||||
}
|
||||
|
||||
#endif /* !__XMLGRAPH_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue