@@ -1162,20 +1162,20 @@ fn sync_one_file(c: &Cargo, dir: &Path, src: @Source) -> bool {
1162
1162
}
1163
1163
match ( src. key, src. keyfp) {
1164
1164
( Some ( _) , Some ( f) ) => {
1165
- let r = pgp:: verify( & c. root, & pkgfile, & sigfile, f ) ;
1165
+ let r = pgp:: verify( & c. root, & pkgfile, & sigfile) ;
1166
1166
1167
1167
if !r {
1168
- error( fmt!( "signature verification failed for source %s",
1169
- name) ) ;
1168
+ error( fmt!( "signature verification failed for source %s with key %s ",
1169
+ name, f ) ) ;
1170
1170
return false;
1171
1171
}
1172
1172
1173
1173
if has_src_file {
1174
- let e = pgp:: verify( & c. root, & srcfile, & srcsigfile, f ) ;
1174
+ let e = pgp:: verify( & c. root, & srcfile, & srcsigfile) ;
1175
1175
1176
1176
if !e {
1177
- error( fmt!( "signature verification failed for source %s",
1178
- name) ) ;
1177
+ error( fmt!( "signature verification failed for source %s with key %s ",
1178
+ name, f ) ) ;
1179
1179
return false;
1180
1180
}
1181
1181
}
@@ -1273,21 +1273,21 @@ fn sync_one_git(c: &Cargo, dir: &Path, src: @Source) -> bool {
1273
1273
}
1274
1274
match ( src. key , src. keyfp ) {
1275
1275
( Some ( _) , Some ( f) ) => {
1276
- let r = pgp:: verify ( & c. root , & pkgfile, & sigfile, f ) ;
1276
+ let r = pgp:: verify ( & c. root , & pkgfile, & sigfile) ;
1277
1277
1278
1278
if !r {
1279
- error ( fmt ! ( "signature verification failed for source %s" ,
1280
- name) ) ;
1279
+ error ( fmt ! ( "signature verification failed for source %s with key %s " ,
1280
+ name, f ) ) ;
1281
1281
rollback ( name, dir, false ) ;
1282
1282
return false ;
1283
1283
}
1284
1284
1285
1285
if has_src_file {
1286
- let e = pgp:: verify ( & c. root , & srcfile, & srcsigfile, f ) ;
1286
+ let e = pgp:: verify ( & c. root , & srcfile, & srcsigfile) ;
1287
1287
1288
1288
if !e {
1289
- error ( fmt ! ( "signature verification failed for source %s" ,
1290
- name) ) ;
1289
+ error ( fmt ! ( "signature verification failed for source %s with key %s " ,
1290
+ name, f ) ) ;
1291
1291
rollback ( name, dir, false ) ;
1292
1292
return false ;
1293
1293
}
@@ -1370,11 +1370,11 @@ fn sync_one_curl(c: &Cargo, dir: &Path, src: @Source) -> bool {
1370
1370
return false ;
1371
1371
}
1372
1372
1373
- let r = pgp:: verify ( & c. root , & pkgfile, & sigfile, f ) ;
1373
+ let r = pgp:: verify ( & c. root , & pkgfile, & sigfile) ;
1374
1374
1375
1375
if !r {
1376
- error ( fmt ! ( "signature verification failed for source %s" ,
1377
- name) ) ;
1376
+ error ( fmt ! ( "signature verification failed for source %s with key %s " ,
1377
+ name, f ) ) ;
1378
1378
return false ;
1379
1379
}
1380
1380
@@ -1390,11 +1390,11 @@ fn sync_one_curl(c: &Cargo, dir: &Path, src: @Source) -> bool {
1390
1390
return false ;
1391
1391
}
1392
1392
1393
- let e = pgp:: verify ( & c. root , & srcfile, & srcsigfile, f ) ;
1393
+ let e = pgp:: verify ( & c. root , & srcfile, & srcsigfile) ;
1394
1394
1395
1395
if !e {
1396
1396
error( ~"signature verification failed for " +
1397
- ~" source " + name);
1397
+ ~" source " + name + ~" with key " + f );
1398
1398
return false;
1399
1399
}
1400
1400
}
@@ -1463,8 +1463,7 @@ fn cmd_init(c: &Cargo) {
1463
1463
return ;
1464
1464
}
1465
1465
1466
- let r = pgp:: verify ( & c. root , & srcfile, & sigfile,
1467
- pgp:: signing_key_fp ( ) ) ;
1466
+ let r = pgp:: verify ( & c. root , & srcfile, & sigfile) ;
1468
1467
if !r {
1469
1468
error ( fmt ! ( "signature verification failed for '%s'" ,
1470
1469
srcfile. to_str( ) ) ) ;
0 commit comments