1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00
pacman/test/scripts/makepkg-template-tests
Dominik Fischer b0ae59724e makepkg-template: support multiple --template-dirs
Especially when maintaining local templates in addition to the ones
stored in /usr/share/makepkg-template, it can be useful to include
templates stored in multiple different locations into one PKGBUILD. This
patch makes this possible by allowing --template-dir to be specified
multiple times.

This also introduces a dedicated error message when a template cannot be
found, in contrast to the already existing "Couldn't detect version for
template '%s'".

If a template of the same name is present in more than one of the given
directories, the last one always takes precedence.

Neither the default behaviour without the option given, nor the handling
of a single template dir is changed.

Signed-off-by: Dominik Fischer <d.f.fischer@web.de>
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Allan McRae <allan@archlinux.org>
2015-05-12 14:00:54 +10:00
..
compose-multiple-template-dirs makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
invalid-key test makepkg-template: Add invalid-key 2015-01-11 18:58:24 +10:00
invalid-template-line-missing-name test makepkg-template: Add invalid-template-line-missing-name 2015-01-11 18:58:24 +10:00
invalid-template-line-unknown-marker test makepkg-template: Add invalid-template-line-unknown-marker 2015-01-11 18:58:24 +10:00
keep-old-version test makepkg-template: Add keep-old-version 2015-01-11 18:58:24 +10:00
last-template-dir-has-precedece makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
missing-template-file makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
missing-template-symlink makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
name-charset-invalid test makepkg-template: Add name-charset-invalid 2015-01-11 18:58:24 +10:00
name-charset-valid test makepkg-template: Add name-charset-valid 2015-01-11 18:58:25 +10:00
template-without-version makepkg-template: support multiple --template-dirs 2015-05-12 14:00:54 +10:00
update-version-with-newest-option test makepkg-template: Add update-version-with-newest-option 2015-01-11 18:58:25 +10:00
testcase-config-template Add testrunner for makepkg-template 2015-01-11 18:58:24 +10:00