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

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

Copyt trusty code

File size: 2.8 KB
RevLine 
[468]1diff -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
2--- Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/AIX/Software.pm        2008-04-02 17:33:20.000000000 +0200
3+++ Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/AIX/Software.pm     2008-09-03 15:15:05.000000000 +0200
4@@ -6,8 +6,8 @@
5 sub check {
6   my $params = shift;
7 
8-  # Do not run an package inventory if there is the --nosoft parameter
9-  return if ($params->{params}->{nosoft});
10+  # Do not run an package inventory if there is the --nosoftware parameter
11+  return if ($params->{params}->{nosoftware});
12 
13   `lslpp -l 2>&1`;
14   return if ($? >> 8)!=0;
15diff -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
16--- Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm   2008-04-02 17:33:20.000000000 +0200
17+++ Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm        2008-09-03 15:15:18.000000000 +0200
18@@ -5,8 +5,8 @@
19 sub check {
20   my $params = shift;
21   
22-  # Do not run an package inventory if there is the --nosoft parameter
23-  return if ($params->{params}->{nosoft});
24+  # Do not run an package inventory if there is the --nosoftware parameter
25+  return if ($params->{params}->{nosoftware});
26   
27   1;
28 }
29diff -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
30--- Ocsinventory-Agent-0.0.9.2/lib/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm    2008-04-02 17:33:20.000000000 +0200
31+++ Ocsinventory-Agent-0.0.9.2-nosoftware/lib/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm 2008-09-03 15:15:33.000000000 +0200
32@@ -6,8 +6,8 @@
33 sub check {
34   my $params = shift;
35 
36-  # Do not run an package inventory if there is the --nosoft parameter
37-  return if ($params->{params}->{nosoft});
38+  # Do not run an package inventory if there is the --nosoftware parameter
39+  return if ($params->{params}->{nosoftware});
40 
41   `which pkginfo 2>&1`;
42   return if ($? >> 8)!=0;
43diff -Nru Ocsinventory-Agent-0.0.9.2/ocsinventory-agent Ocsinventory-Agent-0.0.9.2-nosoftware/ocsinventory-agent
44--- Ocsinventory-Agent-0.0.9.2/ocsinventory-agent       2008-04-18 18:49:44.000000000 +0200
45+++ Ocsinventory-Agent-0.0.9.2-nosoftware/ocsinventory-agent    2008-09-03 15:24:25.000000000 +0200
46@@ -210,7 +210,7 @@
47 
48   });
49 
50-if ($params->{nosoftware}) {
51+if ($params->{nosoft}) {
52     $logger->info("the parameter --nosoft is deprecated and may be removed in a futur release, please use --nosoftware instead.");
53     $params->{nosoftware} = 1
54 }
Note: See TracBrowser for help on using the repository browser.