X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=a42b81cded44229d877882c535b11c2982ecfb77;hb=2f5311c7ed2735926b6fb107a657e77ac331e4c1;hp=833a0ed20d507b665d59d9022dac7521bdce81d0;hpb=35f2979869bff43706f3163ec0979c7084aaa3c4;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 833a0ed..a42b81c 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -99,12 +99,21 @@ Component::SourceList Component::collect_source_files() const if(FS::is_dir(opath)) dirs.push_back(opath); } + set overlay_files; for(SourceList::const_iterator j=dirs.begin(); j!=dirs.end(); ++j) { package.get_builder().get_logger().log("files", format("Traversing %s", *j)); list sfiles = list_files(*j); for(list::iterator k=sfiles.begin(); k!=sfiles.end(); ++k) + { + if(j!=dirs.begin()) + { + if(overlay_files.count(*k)) + continue; + overlay_files.insert(*k); + } files.push_back(*j / *k); + } } } else