Merge pull request #1118 from Random-Liu/support-comment-in-vendor
Support comment in vendor.
This commit is contained in:
commit
e8e3b9425b
@ -81,7 +81,7 @@ from-vendor() {
|
|||||||
BEGIN { rc=1 } # Assume we did not find what we were looking for.
|
BEGIN { rc=1 } # Assume we did not find what we were looking for.
|
||||||
// {
|
// {
|
||||||
if ($1 == REPO) {
|
if ($1 == REPO) {
|
||||||
if ($3 != "") { gsub(/http.*\/\//, "", $3); REPO = $3 }; # Override repo.
|
if ($3 != "" && $3 !~ /#.*/ ) { gsub(/http.*\/\//, "", $3); REPO = $3 }; # Override repo.
|
||||||
printf("%s_VERSION=%s; %s_REPO=%s\n", WHAT, $2, WHAT, REPO);
|
printf("%s_VERSION=%s; %s_REPO=%s\n", WHAT, $2, WHAT, REPO);
|
||||||
rc=0; # Note success for use in END block.
|
rc=0; # Note success for use in END block.
|
||||||
exit # No point looking further.
|
exit # No point looking further.
|
||||||
|
Loading…
Reference in New Issue
Block a user