diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-14 10:23:11 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-14 10:23:11 +0000 |
commit | 3509299aca833ed50faab146f985853255041cb2 (patch) | |
tree | 4c5edc08eaa798790f72715ccbc8f19b0ef8ac47 /src/archive.cc | |
parent | 135b7d54db4e0ca56bda67946432fcf9d4f3ac5c (diff) |
* After building, scan for actual file system references as
opposed to declared references. This prunes the reference
graph, thus allowing better garbage collection and more
efficient derivate distribution.
Diffstat (limited to 'src/archive.cc')
-rw-r--r-- | src/archive.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.cc b/src/archive.cc index 7e07b8a08..c9b78824e 100644 --- a/src/archive.cc +++ b/src/archive.cc @@ -87,7 +87,7 @@ static void dumpContents(const string & path, unsigned int size, writeInt(size, sink); int fd = open(path.c_str(), O_RDONLY); - if (fd == -1) throw SysError("opening file " + path); + if (fd == -1) throw SysError(format("opening file `%1%'") % path); unsigned char buf[65536]; @@ -112,7 +112,7 @@ static void dump(const string & path, DumpSink & sink) { struct stat st; if (lstat(path.c_str(), &st)) - throw SysError("getting attributes of path " + path); + throw SysError(format("getting attributes of path `%1%'") % path); writeString("(", sink); |