public final class RepoManager extends Object
Constructor and Description |
---|
RepoManager(Context context)
Constructor.
|
RepoManager(Context context,
InputInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(String pkg)
Removes a package from the package repository.
|
static IOFile |
file(String name,
Repo repo)
Looks for a file with the specified name.
|
boolean |
install(String path)
Installs a package.
|
StringList |
list()
Returns a list of all packages.
|
Table |
table()
Returns all installed packages in a table.
|
public RepoManager(Context context)
context
- database contextpublic boolean install(String path) throws QueryException
path
- package pathtrue
if package was replacedQueryException
- query exceptionpublic Table table()
public StringList list()
public void delete(String pkg) throws QueryException
pkg
- packageQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.