about summary refs log tree commit diff
path: root/src/archive.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-14T10·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-14T10·23+0000
commit3509299aca833ed50faab146f985853255041cb2 (patch)
tree4c5edc08eaa798790f72715ccbc8f19b0ef8ac47 /src/archive.cc
parent135b7d54db4e0ca56bda67946432fcf9d4f3ac5c (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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.cc b/src/archive.cc
index 7e07b8a08b..c9b78824e7 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);