mirror of
https://gitlab.com/khumba/nvd.git
synced 2024-11-14 00:49:26 +01:00
Fix SIGPIPE handling; bump to v0.1.1.
This commit is contained in:
parent
050f6ff2e3
commit
304918bade
4 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,10 @@
|
||||||
# nvd changelog
|
# nvd changelog
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.1 (2021-05-16)
|
||||||
|
|
||||||
|
- Fix handling of SIGPIPE to exit cleanly.
|
||||||
|
|
||||||
|
## 0.1.0 (2021-05-16)
|
||||||
|
|
||||||
- Add a mandatory action argument to the CLI. The existing diff functionality
|
- Add a mandatory action argument to the CLI. The existing diff functionality
|
||||||
is under the `diff` command. A new `list` command is now implemented as well
|
is under the `diff` command. A new `list` command is now implemented as well
|
||||||
|
|
|
@ -4,7 +4,7 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "nvd";
|
pname = "nvd";
|
||||||
version = "0.1.0";
|
version = "0.1.1";
|
||||||
|
|
||||||
src = nix-gitignore.gitignoreSourcePure [ ./.gitignore ] ./src;
|
src = nix-gitignore.gitignoreSourcePure [ ./.gitignore ] ./src;
|
||||||
|
|
||||||
|
|
5
src/nvd
5
src/nvd
|
@ -45,10 +45,13 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from signal import SIGPIPE, SIG_DFL, signal
|
||||||
from subprocess import PIPE
|
from subprocess import PIPE
|
||||||
from typing import Dict, List, Optional, Tuple, Union
|
from typing import Dict, List, Optional, Tuple, Union
|
||||||
|
|
||||||
NVD_VERSION = "0.1.0"
|
signal(SIGPIPE, SIG_DFL) # Python handles SIGPIPE improperly by default.
|
||||||
|
|
||||||
|
NVD_VERSION = "0.1.1"
|
||||||
|
|
||||||
USE_COLOUR = False
|
USE_COLOUR = False
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH nvd 1 2021-05-16 nvd-0.1.0 "User Commands"
|
.TH nvd 1 2021-05-16 nvd-0.1.1 "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nvd \- Nix/NixOS package version diff tool
|
nvd \- Nix/NixOS package version diff tool
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
Loading…
Reference in a new issue