Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 213443
Collapse All | Expand All

(-)lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Gentoo.pm (-8 / +7 lines)
Lines 12-19 Link Here
12
# TODO: This had been rewrite from the Linux agent _WITHOUT_ being checked!
12
  foreach (`equery list -F '\$cp \$version \$repo' '*'`){
13
  foreach (`equery list -i`){
13
    /^(\S+) (\S+) (\S+)/;
14
    if (/^([a-z]\w+-\w+\/\.*)-([0-9]+.*)/) {
14
    $common->addSoftware({
15
      $common->addSoftware({
15
	'NAME'          => $1,
16
	  'NAME'          => $1,
16
	'VERSION'       => $2,
17
	  'VERSION'       => $2,
17
	'FROM'          => $3
18
	  });
18
	});
19
    }

Return to bug 213443