about summary refs log tree commit diff
path: root/src/libstore/references.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-02-11T16·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-02-11T16·03+0000
commit80870d9291813f265a6e078c92aa535ef0b70a47 (patch)
treecf68380d6b9094789f2bc90670f70771d0e4f09b /src/libstore/references.cc
parent3a99616968a7ffcc8f51bda7a781d3233aa9b428 (diff)
* Input sources should be in the set of all referenceable paths too.
Diffstat (limited to 'src/libstore/references.cc')
-rw-r--r--src/libstore/references.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc
index 5ceae6427617..843aed97fc3b 100644
--- a/src/libstore/references.cc
+++ b/src/libstore/references.cc
@@ -34,6 +34,8 @@ void checkPath(const string & path,
 {
     checkInterrupt();
     
+    debug(format("checking `%1%'") % path);
+
     struct stat st;
     if (lstat(path.c_str(), &st))
         throw SysError(format("getting attributes of path `%1%'") % path);
@@ -48,8 +50,6 @@ void checkPath(const string & path,
 
     else if (S_ISREG(st.st_mode)) {
         
-        debug(format("checking `%1%'") % path);
-
         AutoCloseFD fd = open(path.c_str(), O_RDONLY);
         if (fd == -1) throw SysError(format("opening file `%1%'") % path);