pacman/scripts
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
..
completion bash_completion.in - consider option "-n --native" in operation "-Q --query" 2018-05-12 21:29:12 +10:00
libmakepkg libmakepkg/integrity: determine what is a signature preferring local filename 2018-05-12 21:30:51 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po Initial translation preparation for pacman-5.1 2018-04-29 23:56:07 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am libmakepkg/lint_pkgbuild: lint depends/etc. as if they are pkgname 2018-04-29 21:49:05 +10:00
makepkg-template.pl.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
makepkg.sh.in Append architecture information to 'installed' elements in .BUILDINFO 2018-05-12 21:25:51 +10:00
pacman-db-upgrade.sh.in remove unneeded break argument from option parsing 2018-05-12 21:09:37 +10:00
pacman-key.sh.in remove unneeded break argument from option parsing 2018-05-12 21:09:37 +10:00
pkgdelta.sh.in remove unneeded break argument from option parsing 2018-05-12 21:09:37 +10:00
repo-add.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
wrapper.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00