]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Do dependency discovery in a single pass
[builder.git] / source / binary.cpp
index 17ec7353998f7fc7078c70d56bbb99762dfb7fa2..81124b9465fef1102c5bddd4e66494139e4f47f6 100644 (file)
@@ -27,10 +27,7 @@ Binary::Binary(Builder &b, const Component &c, const std::string &p, const list<
 void Binary::find_depends()
 {
        if(!component)
-       {
-               deps_ready = true;
                return;
-       }
 
        const SourcePackage &spkg = component->get_package();
        LibMode libmode = spkg.get_library_mode();
@@ -74,6 +71,4 @@ void Binary::find_depends()
                if(last)
                        add_depend(*i);
        }
-
-       deps_ready = true;
 }