From 08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2 Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Wed, 25 Nov 2020 22:38:24 -0600 Subject: Add fossil scm support to makepkg Signed-off-by: Ivy Foster Signed-off-by: Allan McRae --- scripts/libmakepkg/util/source.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/libmakepkg/util/source.sh.in') diff --git a/scripts/libmakepkg/util/source.sh.in b/scripts/libmakepkg/util/source.sh.in index be7c15c2..029bf8ed 100644 --- a/scripts/libmakepkg/util/source.sh.in +++ b/scripts/libmakepkg/util/source.sh.in @@ -65,7 +65,7 @@ get_filename() { local proto=$(get_protocol "$netfile") case $proto in - bzr|git|hg|svn) + bzr|fossil|git|hg|svn) filename=${netfile%%#*} filename=${filename%%\?*} filename=${filename%/} @@ -73,6 +73,9 @@ get_filename() { if [[ $proto = bzr ]]; then filename=${filename#*lp:} fi + if [[ $proto = fossil ]]; then + filename=$filename.fossil + fi if [[ $proto = git ]]; then filename=${filename%%.git*} fi -- cgit v1.2.3-54-g00ecf