/** * Checks package descriptor and if packages involved in dependencies are already installed. * * @param pkg package * @throws QueryException query exception */ public void check(final Package pkg) throws QueryException { // check if package is already installed final byte[] name = pkg.uniqueName(); if (repo.pkgDict().get(name) != null) PKGINST.thrw(input, name); // check package dependencies checkDepends(pkg); // check package components checkComps(pkg); }