diff --git a/source/dub/package_.d b/source/dub/package_.d index 6557469..082c286 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -27,19 +27,6 @@ enum PackageJsonFilename = "package.json"; -/// Indicates where a package has been or should be placed to. -enum PlacementLocation { - /// Packages retrived with 'local' will be placed in the current folder - /// using the package name as destination. - local, - /// Packages with 'userWide' will be placed in a folder accessible by - /// all of the applications from the current user. - userWide, - /// Packages retrieved with 'systemWide' will be placed in a shared folder, - /// which can be accessed by all users of the system. - systemWide -} - /// Representing a downloded / cached package, usually constructed from a json object. /// Documentation of the package.json can be found at /// http://registry.vibed.org/package-format diff --git a/source/dub/project.d b/source/dub/project.d index 537b66e..0b1561a 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -720,14 +720,28 @@ } } + enum UpdateOptions { None = 0, JustAnnotate = 1<<0, Upgrade = 1<<1 -}; +} +/// Indicates where a package has been or should be placed to. +enum PlacementLocation { + /// Packages retrived with 'local' will be placed in the current folder + /// using the package name as destination. + local, + /// Packages with 'userWide' will be placed in a folder accessible by + /// all of the applications from the current user. + userWide, + /// Packages retrieved with 'systemWide' will be placed in a shared folder, + /// which can be accessed by all users of the system. + systemWide +} + private void processVars(ref BuildSettings dst, string project_path, BuildSettings settings) { dst.addDFlags(processVars(project_path, settings.dflags));