Skip to content

Commit

Permalink
Fix: ospd-feed-preparer to copy recursively for script-dependencies
Browse files Browse the repository at this point in the history
With this patch the feed-preparer does copy dependencies of a
script-dependency instead of just copying the first dependency.
  • Loading branch information
nichtsfrei committed Sep 12, 2022
1 parent 97fe15b commit e66a4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smoketest/feed/preparer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (p *preparer) copyPlugin(n *nasl.Plugin) error {
}
for _, sdp := range n.ScriptDependencies {
if sd := p.naslCache.ByPath(sdp); sd != nil {
if err := cp(sd); err != nil {
if err := p.copyPlugin(sd); err != nil {
return err
}
} else {
Expand Down

0 comments on commit e66a4ea

Please sign in to comment.