]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.cpp
Split class Package into SourcePackage and BinaryPackage
[builder.git] / source / sourcefile.cpp
index 57866aa274565c3b088f285abb1b2c234223f8bf..718a09c48541152d3c15f484b5048ce81017f94e 100644 (file)
@@ -9,8 +9,8 @@ Distributed under the LGPL
 #include <msp/strings/regex.h>
 #include "builder.h"
 #include "component.h"
-#include "package.h"
 #include "sourcefile.h"
+#include "sourcepackage.h"
 
 using namespace std;
 using namespace Msp;
@@ -26,6 +26,9 @@ from Builder.
 */
 void SourceFile::find_depends()
 {
+       if(!comp)
+               return;
+
        DependencyCache &deps_cache=comp->get_package().get_deps_cache();
        if(mtime>deps_cache.get_mtime())
        {