sonatype-nexus-community / ahab

ahab is a tool to check for vulnerabilities in your apt, apk, or yum powered operating systems, powered by Sonatype OSS Index.
Apache License 2.0
67 stars 18 forks source link

Handle newline in ParseDpkgList #21

Closed DarthHater closed 4 years ago

DarthHater commented 4 years ago

I wanted to improve the testapt.txt file so that it had a full list based on ubuntu:latest, and when I went to do it, I added a newline, and it blew up! This adds some logic to skip empty lines, improves the testapt.txt to be more reflective of a real OS scenario, and adds a couple more trace log statements for debugging

This pull request makes the following changes:

cc @bhamail / @DarthHater

zendern commented 4 years ago

Closing since this was merged with #22