pacman/scripts/libmakepkg
Eli Schwartz 6f1a9e6ea8 makepkg: fix regression that broke extraction of file:// sources
In commit 9c817b6549 we made these sources
extendable, and heuristically determined the correct extraction
functions to use. But our fallback for protos that didn't have an exact
extract_* function didn't take into account that 'extract_file' matches
an actual proto... so we passed the netfile in while the function
expected a file.

Solution: the function should expect a netfile too, thereby allowing us
to delay an attempted resolution of netfile -> file, to the one case
where it is actually used. This makes us slightly more efficient in the
non-file case, makes our functions a bit more consistent, and makes
file:// extraction work again.

Fixes FS#64648

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 349c22d043)
2020-01-14 01:26:52 -08:00
..
buildenv Update copyright years 2019-10-23 22:06:54 +10:00
executable Update copyright years 2019-10-23 22:06:54 +10:00
integrity Update copyright years 2019-10-23 22:06:54 +10:00
lint_config Update copyright years 2019-10-23 22:06:54 +10:00
lint_package Update copyright years 2019-10-23 22:06:54 +10:00
lint_pkgbuild Update copyright years 2019-10-23 22:06:54 +10:00
source makepkg: fix regression that broke extraction of file:// sources 2020-01-14 01:26:52 -08:00
tidy makepkg: fix one more file-seccomp issue 2020-01-09 23:29:14 -08:00
util Comma fail 2019-10-30 14:26:07 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
buildenv.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
executable.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
integrity.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_config.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_package.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
lint_pkgbuild.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
meson.build meson: remove useless mkdir -p 2018-12-12 10:12:41 +10:00
source.sh.in makepkg: fix regression that broke extraction of file:// sources 2020-01-14 01:26:52 -08:00
srcinfo.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
tidy.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
util.sh.in Update copyright years 2019-10-23 22:06:54 +10:00