Skip to content

Commit 60b80fa

Browse files
committed
cargo: Warn if "gpg" is not available
Closes #1643
1 parent d014edc commit 60b80fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cargo/cargo.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ fn configure(opts: options) -> cargo {
418418

419419
if c.pgp {
420420
pgp::init(c.root);
421+
} else {
422+
warn("command \"gpg\" is not found");
423+
warn("you have to install \"gpg\" from source " +
424+
" or package manager to get it to work correctly");
421425
}
422426

423427
c

0 commit comments

Comments
 (0)