- addLocalPackage
Package addLocalPackage(Path path, string verName, LocalPackageType type)
Undocumented in source. Be warned that the author may not have intended to support it.
- addSearchPath
void addSearchPath(Path path, LocalPackageType type)
For the given type add another path where packages will be looked up.
- getBestPackage
Package getBestPackage(string name, string version_spec)
Undocumented in source. Be warned that the author may not have intended to support it.
- getBestPackage
Package getBestPackage(string name, Dependency version_spec)
Undocumented in source. Be warned that the author may not have intended to support it.
- getFirstPackage
Package getFirstPackage(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackage
Package getPackage(string name, Version ver)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackage
Package getPackage(string name, string ver, Path in_path)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackage
Package getPackage(string name, Version ver, Path in_path)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackage
Package getPackage(string name, string ver)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackage
Package getPackage(Path path)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackageIterator
int delegate(int delegate(ref Package)) getPackageIterator()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPackageIterator
int delegate(int delegate(ref Package)) getPackageIterator(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- getTemporaryPackage
Package getTemporaryPackage(Path path, Version ver)
Undocumented in source. Be warned that the author may not have intended to support it.
- getTemporaryPackage
Package getTemporaryPackage(Path path)
Undocumented in source. Be warned that the author may not have intended to support it.
- hashPackage
Hash hashPackage(Package pack)
Generates a hash value for a given package.
Some files or folders are ignored during the generation (like .dub and
.svn folders)
- isManagedPackage
bool isManagedPackage(Package pack)
Determines if a package is managed by DUB.
- refresh
void refresh(bool refresh_existing_packages)
Undocumented in source. Be warned that the author may not have intended to support it.
- remove
void remove(Package pack)
Removes the given the package.
- removeLocalPackage
void removeLocalPackage(Path path, LocalPackageType type)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeSearchPath
void removeSearchPath(Path path, LocalPackageType type)
Removes a search path from the given type.
- storeFetchedPackage
Package storeFetchedPackage(Path zip_file_path, Json package_info, Path destination)
Extracts the package supplied as a path to it's zip file to the
destination and sets a version field in the package description.
The PackageManager can retrieve present packages and get / remove packages.