source: ocsinventory-agent/trunk/fuentes/debian/patches/fix-no-software.patch

Last change on this file was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 2.8 KB
  • lib/Ocsinventory/Agent/Backend/OS/AIX/Software.pm

    diff -Nru Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/AIX/Software.pm Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/AIX/Software.pm
    old new  
    66sub check {
    77  my $params = shift;
    88
    9   # Do not run an package inventory if there is the --nosoft parameter
    10   return if ($params->{params}->{nosoft});
     9  # Do not run an package inventory if there is the --nosoftware parameter
     10  return if ($params->{params}->{nosoftware});
    1111
    1212  `lslpp -l 2>&1`;
    1313  return if ($? >> 8)!=0;
  • lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm

    diff -Nru Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm
    old new  
    55sub check {
    66  my $params = shift;
    77 
    8   # Do not run an package inventory if there is the --nosoft parameter
    9   return if ($params->{params}->{nosoft});
     8  # Do not run an package inventory if there is the --nosoftware parameter
     9  return if ($params->{params}->{nosoftware});
    1010   
    1111  1;
    1212}
  • lib/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm

    diff -Nru Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm
    old new  
    66sub check {
    77  my $params = shift;
    88
    9   # Do not run an package inventory if there is the --nosoft parameter
    10   return if ($params->{params}->{nosoft});
     9  # Do not run an package inventory if there is the --nosoftware parameter
     10  return if ($params->{params}->{nosoftware});
    1111
    1212  `which pkginfo 2>&1`;
    1313  return if ($? >> 8)!=0;
  • Ocsinventory-Agent-0.0.9.

    diff -Nru Ocsinventory-Agent-0.0.9.2/ocsinventory-agent Ocsinventory-Agent-0.0.9.2-nosoftware/ocsinventory-agent
    old new  
    210210
    211211  });
    212212
    213 if ($params->{nosoftware}) {
     213if ($params->{nosoft}) {
    214214    $logger->info("the parameter --nosoft is deprecated and may be removed in a futur release, please use --nosoftware instead.");
    215215    $params->{nosoftware} = 1
    216216}
Note: See TracBrowser for help on using the repository browser.