mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Mk/Uses/cargo.mk: cargo-crates to flag unknown git hosts
To avoid some head scratching print a warning instead of being silent when encountering unhandled git hosts.
This commit is contained in:
parent
20eee12e65
commit
ee15f75b1e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508310
@ -72,7 +72,9 @@ function split_url(s) {
|
||||
tag = url["fragment"]
|
||||
}
|
||||
|
||||
added = 0
|
||||
if (url["host"] == "github.com") {
|
||||
added = 1
|
||||
gh_tuple[gh_tuple_len++] = sprintf(\
|
||||
"%s:%s:%s:%s", account, project, tag, package_name)
|
||||
} else {
|
||||
@ -88,9 +90,14 @@ function split_url(s) {
|
||||
gl_tuple[gl_tuple_len++] = sprintf(\
|
||||
"%s:%s:%s:%s:%s", site, account, project, tag, package_name)
|
||||
}
|
||||
added = 1
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (!added) {
|
||||
printf "Warning: Ignoring git source on line %d: %s\n", NR, $3 > "/dev/stderr"
|
||||
}
|
||||
}
|
||||
|
||||
function print_array(start, arr, arrlen) {
|
||||
|
Loading…
Reference in New Issue
Block a user