You are not logged in.

#1 2015-11-01 17:55:10

letian_north
Member
Registered: 2012-11-28
Posts: 19

[SOLVED] Constantly getting md5sum validity check failure?

Hello guys,
I have just submitted my first package to AUR and decided to install it with yaourt.
However I am constantly getting

==> Validating source files with md5sums...
    multitran_er.py ... FAILED
==> ERROR: One or more files did not pass the validity check!

I understand that whenever the source gets downloaded and saved on disk it has a different md5sum value than the one I used on my machine.
Then I don't understand how it should all work since every time the file is downloaded from github it receives a new md5sum.

Here is my PKGBUILD:

# Maintainer: tastyminerals <tastyminerals@gmail.com>
pkgname=multitran_er
pkgver=1.0
pkgrel=1
pkgdesc="Simple multitran.com console client"
arch=(any)
url="https://github.com/tastyminerals/multitran-er.git"
license=('MIT')
groups=()
depends=('python>=3.0')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(https://github.com/tastyminerals/multitran-er/blob/master/multitran_er.py)
md5sums=(e8d06f1348f3f369cd1bf88b9a61423e)

package() {
  install -D -m 755 multitran_er.py ${pkgdir}/usr/bin/multitran_er
}

Last edited by letian_north (2015-11-01 18:11:33)

Offline

#2 2015-11-01 18:08:16

mpan
Member
Registered: 2012-08-01
Posts: 1,642
Website

Re: [SOLVED] Constantly getting md5sum validity check failure?

You're not downloading source. You're downloading some webpage from GitHub.

Also: are you sure you know what you're doing? Definetly I would not trust an AUR package maintainer who shows so great neglectfullnes and doesn't verify their sources. Obviously, you haven't even checked what is being downloaded.

Last edited by mpan (2015-11-01 18:14:50)

Offline

#3 2015-11-01 18:10:44

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Constantly getting md5sum validity check failure?

Ok, I just need to use a different source link that point to raw file on github.
I replaced my source file with

https://raw.githubusercontent.com/tastyminerals/multitran-er/master/multitran_er.py

.
Now all works fine.

Offline

#4 2015-11-01 18:11:15

letian_north
Member
Registered: 2012-11-28
Posts: 19

Re: [SOLVED] Constantly getting md5sum validity check failure?

mpan wrote:

You're not downloading source. You're downloading a webpage from GitHub...

Yep, just noticed.
Thanks

Offline

#5 2015-11-01 18:15:34

Muflone
Package Maintainer (PM)
From: Italy
Registered: 2013-10-08
Posts: 147
Website

Re: [SOLVED] Constantly getting md5sum validity check failure?

Whenever the upstream source gets updated your package will receive a checksum failure error.
You can fix this issues using one of the following:
a) rename the package to multitran_er-git and set the checksum source to SKIP to always get the latest version
b) point your sources to a specific commit source file which corresponds to your actual checksum
https://raw.githubusercontent.com/tasty … tran_er.py

Offline

Board footer

Powered by FluxBB