forked from tiiuae/sbomnix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make it possible to call repology-related code from the repology package. - Change vulnxscan and nix_outdated so they call the replogoy-related code from the repology package instead of creating a new process with exec_cmd to invoke repology_cli or repology_cve. Signed-off-by: Henri Rosten <[email protected]>
- Loading branch information
1 parent
8865646
commit 80ae584
Showing
6 changed files
with
131 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# pylint: disable=unnecessary-pass | ||
|
||
"""Repology exceptions""" | ||
|
||
|
||
class RepologyError(Exception): | ||
"""Base class for exceptions raised in the repology modules""" | ||
|
||
pass | ||
|
||
|
||
class RepologyNoMatchingPackages(RepologyError): | ||
"""Raised when no matching repology packages found""" | ||
|
||
pass | ||
|
||
|
||
class RepologyUnexpectedResponse(RepologyError): | ||
"""Raised when repology sends unexpected response""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.