Skip to content

Fix multiple instances issue #5012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Gyan-max
Copy link

@Gyan-max Gyan-max commented Apr 7, 2025

Add --update-only flag for database updates without scanning

This PR implements a solution for issue #4777 to improve the experience for users running multiple copies of cve-bin-tool in parallel.

Changes:

  • Added a new --update-only flag that allows users to update the database without requiring a directory or file to scan
  • When this flag is specified, the tool will:
  • Update the database (with -u now behavior)
  • Exit after the update is complete without proceeding to scanning
  • Updated the documentation in:
  • doc/MANUAL.md to include the new flag in the Database Management section
  • doc/how_to_guides/multiple_scans_at_once.md to recommend using this flag in parallel usage scenarios
  • Added a test case to verify the functionality

This addresses the first part of issue #4777, making it more intuitive for users to separate database updates from scanning when running multiple instances of the tool in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant