[Openvas-commits] r10528 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Mar 11 12:37:41 CET 2011


Author: mwiegand
Date: 2011-03-11 12:37:37 +0100 (Fri, 11 Mar 2011)
New Revision: 10528

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/kb_2_sc.nasl
Log:
* scripts/kb_2_sc.nasl: Add datatype attribute to evr element to make
  the system characteristic work with OVAL 5.9.



Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-03-10 15:23:47 UTC (rev 10527)
+++ trunk/openvas-plugins/ChangeLog	2011-03-11 11:37:37 UTC (rev 10528)
@@ -1,3 +1,8 @@
+2011-03-11  Michael Wiegand <michael.wiegand at greenbone.net>
+
+	* scripts/kb_2_sc.nasl: Add datatype attribute to evr element to make
+	the system characteristic work with OVAL 5.9.
+
 2011-03-10  Michael Meyer <michael.meyer at greenbone.net>
 
 	* scripts/smbcl_getversion.nasl:

Modified: trunk/openvas-plugins/scripts/kb_2_sc.nasl
===================================================================
--- trunk/openvas-plugins/scripts/kb_2_sc.nasl	2011-03-10 15:23:47 UTC (rev 10527)
+++ trunk/openvas-plugins/scripts/kb_2_sc.nasl	2011-03-11 11:37:37 UTC (rev 10528)
@@ -26,7 +26,7 @@
 if (description)
 {
  script_id (103998);
- script_version ("1.0");
+ script_version ("1.1");
 
  script_name ("Create System Characteristics");
 
@@ -90,7 +90,7 @@
           xml = string (xml, '\t\t\t<epoch/>\n');
           xml = string (xml, '\t\t\t<release>', package_data[1], '</release>\n');
           xml = string (xml, '\t\t\t<version>', package_data[2], '</version>\n');
-          xml = string (xml, '\t\t\t<evr/>\n');
+          xml = string (xml, '\t\t\t<evr datatype=\"evr_string\"/>\n');
           keyid = eregmatch (string:package_data[3], pattern:"Key ID ([0-9a-z]+)");
           xml = string (xml, '\t\t\t<signature_keyid>', keyid[1], '</signature_keyid>\n');
           xml = string (xml, '\t\t</rpminfo_item>\n');
@@ -117,7 +117,7 @@
           xml = string (xml, '\t\t\t<epoch/>\n');
           xml = string (xml, '\t\t\t<release/>\n');
           xml = string (xml, '\t\t\t<version>', package_data[2], '</version>\n');
-          xml = string (xml, '\t\t\t<evr/>\n');
+          xml = string (xml, '\t\t\t<evr datatype=\"evr_string\"/>\n');
           xml = string (xml, '\t\t</dpkginfo_item>\n');
           i++;
         }



More information about the Openvas-commits mailing list