cwd = FS::getcwd();
+ package_manager.append_package_path(cwd);
+ package_manager.append_package_path(cwd/"..");
+
package_manager.set_no_externals(no_externals);
if(arch.empty())
builder(b),
no_externals(false),
env_set(false)
-{
- pkg_path.push_back(builder.get_work_directory()/".");
- pkg_path.push_back(builder.get_work_directory()/"..");
-}
+{ }
PackageManager::~PackageManager()
{
delete i->second;
}
+void PackageManager::append_package_path(const FS::Path &p)
+{
+ pkg_path.push_back(p);
+}
+
void PackageManager::set_no_externals(bool x)
{
no_externals = x;
PackageManager(Builder &);
~PackageManager();
+ /// Adds a location to look for source packages from.
+ void append_package_path(const Msp::FS::Path &);
+
/** Prevent creation of source packages. */
void set_no_externals(bool);