Am Freitag, 12. September 2008 08:36:47 schrieb Chandrashekhar B:
> For RHEL, if we can add \n at the end in this query, it works,
> rpm -qa --qf '%{NAME}~%{VERSION}~%{RELEASE}~%{SIGGPG:pgpsig}\n'

Sure, no problem on my side. I will fix the parser for the OVAL plugins 
accordingly.

> The regular expression is failing because of large string and it doesn't
> seem to grep appropriately.
>
> I think, we should all move to gather-package-list.nasl, move everything
> into this. I just glanced through, nothing seems to break by adding '\n' at
> the end of rpm -qa queries. So, we'll add \n to gather-package-list.nasl
> and move all our scripts to point to this.

While we are at it, would it make sense to leave the parsing as well to 
gather-package-list.nasl?

That way, we wouldn't end up with a huge string in the KB that could be in any 
of the different formats (depending on the distribution) but with structured 
information about the packages in the KB. This would enable us to check for 
package versions etc. using the functions already available for the KB 
instead of writing dozens of new functions in NASL.

I'm not sure how much work it would take, but IMHO it would be well worth the 
effort and make writing LSCs both easier and more efficient.

Regards,

Michael

-- 
Michael Wiegand                                   OpenPGP key: D7D049EC
Intevation GmbH, Osnabrück                    http://www.intevation.de/
Amtsgericht Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel

Reply via email to