Tag 0.0.21.

This commit is contained in:
Manuel Amador (Rudd-O) 2020-04-20 12:04:48 +00:00
parent bd1d9b63c6
commit 2e8e479653
2 changed files with 13 additions and 1 deletions

View File

@ -197,6 +197,18 @@ if not any(x in sys.argv[1:] for x in ['--help', '-h', '-?']):
opts = parser_for_subcommands.parse_args() opts = parser_for_subcommands.parse_args()
args = None args = None
if not opts.dest_vm:
try:
with open("/rw/config/pass-split-domain") as domain:
opts.dest_vm = domain.readlines()[0].strip()
except FileNotFoundError:
pass
if not opts.dest_vm:
usage("error: the QUBES_PASS_DOMAIN variable is not defined."
" Either create /rw/config/pass-split-domain with the VM containing"
" your pass setup, set the environment variable yourself,"
" or pass -d on the command line.",)
if opts.subcommand == "get-or-list": if opts.subcommand == "get-or-list":
if opts.key: if opts.key:
sys.exit(pass_read("get", opts.key)) sys.exit(pass_read("get", opts.key))

View File

@ -3,7 +3,7 @@
%define mybuildnumber %{?build_number}%{?!build_number:1} %define mybuildnumber %{?build_number}%{?!build_number:1}
Name: qubes-pass Name: qubes-pass
Version: 0.0.20 Version: 0.0.21
Release: %{mybuildnumber}%{?dist} Release: %{mybuildnumber}%{?dist}
Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs
BuildArch: noarch BuildArch: noarch