mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 02:41:53 -05:00
makepkg: Improvements to get_filename:
* For any vcs other that git, the fall through resulted in being handled by the code for std url, hence fragments were being left on. * Handle vcs urls than end in a slash correctly, eg http://example.com/project/ Signed-off-by: Gary van der Merwe <garyvdm@gmail.com>
This commit is contained in:
parent
c926c39b04
commit
03ea8ca6a9
@ -237,12 +237,12 @@ get_filename() {
|
|||||||
|
|
||||||
case $proto in
|
case $proto in
|
||||||
git*|hg*|svn*)
|
git*|hg*|svn*)
|
||||||
filename=${netfile##*/}
|
filename=${netfile%%#*}
|
||||||
filename=${filename%%#*}
|
filename=${filename%/}
|
||||||
# fall-through
|
filename=${filename##*/}
|
||||||
;;&
|
if [[ $proto = git* ]]; then
|
||||||
git*)
|
|
||||||
filename=${filename%%.git*}
|
filename=${filename%%.git*}
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# if it is just an URL, we only keep the last component
|
# if it is just an URL, we only keep the last component
|
||||||
|
Loading…
x
Reference in New Issue
Block a user