Commit e6ca02c 1 parent d4287db commit e6ca02c Copy full SHA for e6ca02c
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ sub calcapkchksum {
655
655
$ctx ->addfile($fd );
656
656
}
657
657
return $ctx if $type eq 'raw';
658
- return $type .$ctx ->b64digest() if $type eq 'Q1' || $type eq 'Q2';
658
+ return $type .$ctx ->b64digest().( $type eq 'Q1' ? '=' : '') if $type eq 'Q1' || $type eq 'Q2';
659
659
return $type .$ctx ->hexdigest() if $type eq 'X1' || $type eq 'X2';
660
660
return $ctx ->hexdigest();
661
661
}
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ sub trunc_apkchksum {
442
442
sub calcapkchksum_adb {
443
443
my ($type ) = $_ [1];
444
444
die (" unsupported apkchksum type $type \n " ) unless $type eq ' Q1' || $type eq ' Q2' || $type eq ' X1' || $type eq ' X2' || $type eq ' md5' ;
445
- return ' Q1' .Digest::SHA::sha1_base64($_ [0]) if $type eq ' Q1' ;
445
+ return ' Q1' .Digest::SHA::sha1_base64($_ [0]). ' = ' if $type eq ' Q1' ;
446
446
return ' Q2' .Digest::SHA::sha256_base64($_ [0]) if $type eq ' Q2' ;
447
447
return ' X1' .Digest::SHA::sha1_hex($_ [0]) if $type eq ' X1' ;
448
448
return ' X2' .Digest::SHA::sha256_hex($_ [0]) if $type eq ' X2' ;
You can’t perform that action at this time.
0 commit comments