/* * Given an AUR package name, returns a string containing all of its information fields * (ex: name, description, version, dependsOn...) */ QByteArray UnixCommand::getAURPackageVersionInformation() { QByteArray result; if (StrConstants::getForeignRepositoryToolName() == "kcp") { result = performAURCommand("-lO"); } else if (StrConstants::getForeignRepositoryToolName() != "kcp") { result = performAURCommand("-Qua"); } return result; }
/* * Given a KCP package name, * returns a string containing all of its information fields * (ex: name, description, version, dependsOn...) */ QByteArray UnixCommand::getKCPPackageInformation(const QString &pkgName) { QString args = "--information " + pkgName; QByteArray result = performAURCommand(args); return result; }