File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 3131#include " lymMacroInterpreter.h"
3232#include " lymMacro.h"
3333#include " gsiDecl.h"
34+ #include " tlFileUtils.h"
3435
3536#include < QDir>
3637#include < QUrl>
@@ -354,6 +355,8 @@ MacroController::sync_package_paths ()
354355{
355356 std::vector<std::string> package_locations;
356357
358+ // Add package locations for packages
359+
357360 lay::SaltController *sc = lay::SaltController::instance ();
358361 if (sc) {
359362 lay::Salt &salt = sc->salt ();
@@ -362,6 +365,15 @@ MacroController::sync_package_paths ()
362365 }
363366 }
364367
368+ // Add package locations for technologies which share the same structure
369+
370+ for (db::Technologies::const_iterator t = db::Technologies::instance ()->begin (); t != db::Technologies::instance ()->end (); ++t) {
371+ std::string bd = t->base_path ();
372+ if (! bd.empty () && tl::is_dir (bd)) {
373+ package_locations.push_back (bd);
374+ }
375+ }
376+
365377 // refresh the package locations by first removing the package locations and then rebuilding
366378 // TODO: maybe that is a performance bottleneck, but right now, remove_package_location doesn't do a lot.
367379
You can’t perform that action at this time.
0 commit comments