| 55 | } |
| 56 | |
| 57 | bool Load(const std::string& packageName, const unsigned int priority) |
| 58 | { |
| 59 | Debug::Log->info( |
| 60 | "<Package> Loading Package '{0}' with priority", packageName, priority); |
| 61 | if (PackageExists(packageName)) |
| 62 | { |
| 63 | MountablePath::Mount(MountablePath( |
| 64 | MountablePathType::Package, GetPackageLocation(packageName), priority)); |
| 65 | return true; |
| 66 | } |
| 67 | throw Exceptions::UnknownPackage(packageName, ListPackages(), EXC_INFO); |
| 68 | } |
| 69 | } // namespace obe::System::Package |
no test coverage detected