22 private $pkgagentDesc =
"Parse package headers. for example if files are rpm package listed, display their package information";
24 public function __construct() {
25 $this->Name =
"agent_pkgagent";
26 $this->Title = _(
"Package Analysis <img src=\"images/info_16.png\" data-toggle=\"tooltip\" title=\"".$this->pkgagentDesc.
"\" class=\"info-bullet\"/>");
27 $this->AgentName =
"pkgagent";
29 parent::__construct();
38 return CheckARS($uploadId, $this->AgentName,
"package meta data scanner",
"pkgagent_ars");
47 $dbManager = $GLOBALS[
'container']->get(
'db.manager');
48 $latestPkgAgent = $dbManager->getSingleRow(
"SELECT agent_enabled FROM agent WHERE agent_name=$1 ORDER BY agent_ts LIMIT 1",array(
'pkgagent'));
49 if (!empty($latestPkgAgent) && !$dbManager->booleanFromDb($latestPkgAgent[
'agent_enabled']))
53 menu_insert(
"Agents::" . $this->Title, 0, $this->Name);
AgentHasResults($uploadId=0)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.