1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 15:31:47 +02:00

* Renamed normalise.cc' -> build.cc', `storeexprs.cc' ->

`derivations.cc', etc.
* Store the SHA-256 content hash of store paths in the database after
  they have been built/added.  This is so that we can check whether
  the store has been messed with (a la `rpm --verify').
* When registering path validity, verify that the closure property
  holds.
This commit is contained in:
Eelco Dolstra 2005-01-19 16:39:47 +00:00
parent ef5f254a55
commit 96de272b48
19 changed files with 128 additions and 98 deletions

View file

@ -1,5 +1,5 @@
#include "dotgraph.hh"
#include "normalise.hh"
#include "build.hh"
#if 0

View file

@ -1,7 +1,7 @@
#ifndef __DOTGRAPH_H
#define __DOTGRAPH_H
#include "storeexpr.hh"
#include "util.hh"
void printDotGraph(const PathSet & roots);

View file

@ -1,7 +1,7 @@
#include <iostream>
#include "globals.hh"
#include "normalise.hh"
#include "build.hh"
#include "gc.hh"
#include "archive.hh"
#include "shared.hh"
@ -187,7 +187,7 @@ static void opValidPath(Strings opFlags, Strings opArgs)
createStoreTransaction(txn);
for (Strings::iterator i = opArgs.begin();
i != opArgs.end(); ++i)
registerValidPath(txn, *i);
registerValidPath(txn, *i, hashPath(htSHA256, *i));
txn.commit();
}