Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/util/source.sh.in
diff options
context:
space:
mode:
authorIvy Foster <escondida@iff.ink>2020-11-25 22:38:24 -0600
committerAllan McRae <allan@archlinux.org>2020-11-26 21:58:40 +1000
commit08f4ae709ca00ec9b4c56d92d3cdd7de4e6effc2 (patch)
tree9e923698858a61e97fa31cafbf92d1f066dbebd3 /scripts/libmakepkg/util/source.sh.in
parent73e0d7dedc197f71c4fd6b7c18d2b2f2d63bf013 (diff)
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/source.sh.in')
-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