You are not logged in.

#1 2017-12-09 22:43:08

Gerche
Member
Registered: 2017-11-15
Posts: 5

aur package has a different md5sum after every download

I'm trying to install this aur package using the following pacaur command:

pacaur -S osx-arc-shadow

I than received the following error:

ERROR: One or more files did not pass the validity check!

Content of the PKGBUILD file:

pkgname=osx-arc-shadow
pkgver=1.4.5
pkgrel=2
pkgdesc="OSX-Arc-Shadow Theme for GTK 3.x"
arch=(any)
url=https://www.gnome-look.org/p/1167049/
depends=('gtk3')
source=("https://dl.opendesktop.org/api/files/downloadfile/id/1511459169/s/478c7995e96c3694c30aa8db98fe43a5/t/1512760162/OSX-Arc-Shadow-v1.4.5.zip")
md5sums=('f58e3c160e6b71ae7dadbc056210da45')

package(){
        cd "$srcdir"
        find */ -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \;
}

If I try to check the md5sum manually I can see the md5sum does indeed not match the PKGBUILD.

md5sum ~/.cache/pacaur/osx-arc-shadow/OSX-Arc-Shadow-v1.4.5.zip 
57da90f11db1e187f7f86357c60d2dce  /home/wouter/.cache/pacaur/osx-arc-shadow/OSX-Arc-Shadow-v1.4.5.zip

The strange thing however is that when i clear my pacaur cache and run the commands again I get a different md5sum every time.
Any idea why this is? Shouldn't this be the same every time?

I also noticed the url and pkgrel of the repository where recently updated: https://aur.archlinux.org/cgit/aur.git/ … arc-shadow
Because of this my first thought was that maybe the checksum just wasn't updated but since it seems I get different ones every time I dont think this is the issue.

Offline

#2 2017-12-09 23:16:54

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: aur package has a different md5sum after every download

That URL seems to be an time limited API url, so you are only redirected to the download page without receiving the zip file.

$ curl -D -  "https://dl.opendesktop.org/api/files/downloadfile/id/1511459169/s/478c7995e96c3694c30aa8db98fe43a5/t/1512760162/OSX-Arc-Shadow-v1.4.5.zip"
HTTP/1.1 302 Found
Date: Sat, 09 Dec 2017 23:14:35 GMT
Server: Apache
Location: http://www.opendesktop.org/c/1483250617
Content-Length: 0
Content-Type: text/html

There is a link to github which should be a better source for an automated download.
https://github.com/LinxGem33/OSX-Arc-Shadow/releases


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB