Skip to content

Commit

Permalink
Fix sha256sum validation (toltec-dev#870)
Browse files Browse the repository at this point in the history
* Fix sha256sum validation

* Fix hashes
  • Loading branch information
Eeems authored May 30, 2024
1 parent d5cd9e5 commit 3b928d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package/micro/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
pkgnames=(micro)
pkgdesc="Modern and intuitive terminal-based text editor"
url=https://micro-editor.github.io/
pkgver=2.0.13-1
pkgver=2.0.13-2
timestamp=2023-10-21T22:38:29Z
section="utils"
maintainer="Eeems <[email protected]>"
license=MIT

source=("https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-linux-arm.tar.gz")
sha256sums=(cbbed4e69567871462464049646dc11fdad8b8c75fde5d75856068c2cfbd2d38)
sha256sums=(adb9cf644354a5c85819db40e1a427f0f4951b172597bbcd3ef94ecc4a8c4b75)

package() {
install -Dm644 "$srcdir"/LICENSE "$pkgdir/opt/usr/share/licenses/$pkgname/LICENSE"
Expand Down
4 changes: 2 additions & 2 deletions package/webinterface-upload-button/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=("webinterface-upload-button")
pkgdesc="A simple upload button for the web interface"
url="https://github.com/rM-self-serve/webinterface-upload-button"
pkgver=1.1.1-2
pkgver=1.1.1-3
timestamp=2023-12-16T15:35:49Z
section="utils"
maintainer="rM-self-serve <[email protected]>"
Expand All @@ -15,7 +15,7 @@ source=(
"$url"/archive/1d28b2d91c0179059017696ae5a33aa49e1e7c7d.zip
)
sha256sums=(
99ac382e665b55c43876e8991c9dfa7f11a625d4f3ed4f35d3bc58762e04db39
f967cad7607da6458cb0e307b662db66026747922f98ad19f7e2265b9cab1f47
)

package() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/toltec/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _fetch_sources(

# Verify checksum
file_sha = util.file_sha256(local_path)
if source.checksum not in ("SKIP", source.checksum):
if source.checksum not in ("SKIP", file_sha):
raise BuildError(
f"Invalid checksum for source file {source.url}:\n"
f" expected {source.checksum}\n"
Expand Down

0 comments on commit 3b928d7

Please sign in to comment.