Page MenuHomePhabricator

[AUR] A few fixes to the update-aur.sh script
ClosedPublic

Authored by Fabien on Sep 2 2020, 10:06.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC350097af23df: [AUR] A few fixes to the update-aur.sh script
Summary
  • The updpkgsums script is expected to replace the sums using the algorithm already declared in the PKGBUILD. The update-aur.sh script actually does this by declaring the sums as sha256 in the PKGBUILD file, but this is not enough to trigger the detection by updpkgsums. This diff fixes this by adding a dummy hash value.
  • The cp -R "${PACKAGE}"/* "${PACKAGE}-upstream" glob expansion will not copy the .SRCINFO file due to it starting with a dot. This diff fixes the copy syntax to include all files including the hidden ones.
Test Plan
./update-aur.sh bitcoin-abc

Check the checksum is using sha256 as expected.
Check the .SRCINFO file is part of the commit.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Sep 2 2020, 10:06
Fabien edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Sep 2 2020, 13:22