ich777/un-get

Checksum check doesn't always work

Closed this issue ยท 4 comments

I tried to install vim but got an error about a checksum mismatch.

The reason turned out that the grep on this line returns two matches:

1912520cf24892a77371139fd350810f  ./ap/vim-8.2.4256-x86_64-1.txz
21ff847449660ba8661db405c4520cdf  ./xap/vim-gvim-8.2.4256-x86_64-1.txz

(the package I'm trying to install is vim-8.2.4256-x86_64-1.txz, which also matches vim-gvim-8.2.4256-x86_64-1.txz)

I fixed it by also matching the preceding slash: grep "/$1"

@robertklep thank you for the report, please update the plugin to v0.17/2022-10-12, already released a fix!

If you got any further issues please feel free to re-open the issue or create a new one.

@ich777 whoops, sorry for the noise!

@robertklep oh sorry, maybe my language barrier kicked in.
Released a fix based on your report is what I wanted to say...

@ich777 ๐Ÿ˜… in any case, thanks!