summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/util
diff options
context:
space:
mode:
authorIvy Foster <escondida@iff.ink>2020-11-26 05:38:24 +0100
committerAllan McRae <allan@archlinux.org>2020-11-26 12:58:40 +0100
commit08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2 (patch)
tree9e923698858a61e97fa31cafbf92d1f066dbebd3 /scripts/libmakepkg/util
parent73e0d7dedc197f71c4fd6b7c18d2b2f2d63bf013 (diff)
downloadpacman-08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2.tar.gz
pacman-08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2.tar.xz
Add fossil scm support to makepkg
Signed-off-by: Ivy Foster <escondida@iff.ink> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/util')
-rw-r--r--scripts/libmakepkg/util/source.sh.in5
1 files changed, 4 insertions, 1 deletions
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