예제 #1
0
/*
 * 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;
}
예제 #2
0
/*
 * 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;
}