@@ -2,8 +2,8 @@ use super::*;
22
33#[ derive( Parser ) ]
44pub ( crate ) struct Verify {
5- #[ arg( help = "Verify manifest root hash is <HASH >" , long) ]
6- hash : Option < Hash > ,
5+ #[ arg( help = "Verify manifest fingerprint is <FINGERPRINT >" , long) ]
6+ fingerprint : Option < Hash > ,
77 #[ arg( help = "Ignore missing files" , long) ]
88 ignore_missing : bool ,
99 #[ arg( help = "Verify that manifest has been signed by <KEY>" , long) ]
@@ -45,20 +45,20 @@ impl Verify {
4545 path : Manifest :: FILENAME ,
4646 } ) ?;
4747
48- let root_hash = manifest. root_hash ( ) ;
48+ let fingerprint = manifest. fingerprint ( ) ;
4949
50- if let Some ( expected) = self . hash {
51- if root_hash != expected {
50+ if let Some ( expected) = self . fingerprint {
51+ if fingerprint != expected {
5252 let style = Style :: stderr ( ) ;
5353 eprintln ! (
5454 "\
55- root hash mismatch: `{source}`
56- expected: {}
57- actual: {}" ,
55+ fingerprint mismatch: `{source}`
56+ expected: {}
57+ actual: {}" ,
5858 expected. style( style. good( ) ) ,
59- root_hash . style( style. bad( ) ) ,
59+ fingerprint . style( style. bad( ) ) ,
6060 ) ;
61- return Err ( error:: RootHashMismatch . build ( ) ) ;
61+ return Err ( error:: FingerprintMismatch . build ( ) ) ;
6262 }
6363 }
6464
@@ -169,7 +169,7 @@ mismatched file: `{path}`
169169 }
170170
171171 for ( public_key, signature) in & manifest. signatures {
172- public_key. verify ( root_hash . as_bytes ( ) , signature) ?;
172+ public_key. verify ( fingerprint . as_bytes ( ) , signature) ?;
173173 }
174174
175175 if let Some ( key) = self . key {
0 commit comments