pacman/scripts/libmakepkg
Eli Schwartz 1741bdaf81 libmakepkg/integrity: determine what is a signature preferring local filename
Checking the file extension to determine if something is a signature is
currently done in three places:
- verify_file_signature: uses $file to print status, reuses it for
  comparison
- source_has_signatures: uses $netfile, but removes url component if
  filename component exists
- generate_one_checksum: uses $netfile and fails to detect renamed files

This leads to inconsistent behavior when trying to use a signature of
the form "foo-1.0.tar.gz.asc::https://example.com/foo-1.0.tar.gz.pgp"

Fix this by treating the third case like the second case.

Reported-by: Giancarlo Razzolini <grazzolini@archlinux.org>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-05-12 21:30:51 +10:00
..
integrity libmakepkg/integrity: determine what is a signature preferring local filename 2018-05-12 21:30:51 +10:00
lint_config libmakepkg: Add basic rules to lint makepkg.conf variables 2018-03-15 14:34:13 +10:00
lint_package Update coyrights for 2018 2018-03-14 13:31:31 +10:00
lint_pkgbuild libmakepkg: only save the shellopts we need 2018-05-12 21:11:52 +10:00
source Update coyrights for 2018 2018-03-14 13:31:31 +10:00
tidy Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util libmakepkg: don't save/set/restore extglob in bash [[ tests 2018-05-12 21:16:03 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
integrity.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
lint_config.sh.in libmakepkg: Add basic rules to lint makepkg.conf variables 2018-03-15 14:34:13 +10:00
lint_package.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
lint_pkgbuild.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
source.sh.in remove unneeded break argument from option parsing 2018-05-12 21:09:37 +10:00
srcinfo.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
tidy.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00