FreeBSD Bugzilla – Attachment 184169 Details for
Bug 220548
Mk/Scripts/cargo-crates.awk: "make cargo-crates" doesn't strip branch name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cargo-crates.diff
cargo-crates.diff (text/plain), 686 bytes, created by
Tobias Kortkamp
on 2017-07-08 08:39:10 UTC
(
hide
)
Description:
cargo-crates.diff
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2017-07-08 08:39:10 UTC
Size:
686 bytes
patch
obsolete
>Index: Mk/Scripts/cargo-crates.awk >=================================================================== >--- Mk/Scripts/cargo-crates.awk (revision 445304) >+++ Mk/Scripts/cargo-crates.awk (working copy) >@@ -23,12 +23,17 @@ > gsub("^\"git\+", "", url[1]) > split(url[1], repourl, "/") > account = repourl[4] >- project = repourl[5] >+ split(repourl[5], query, "\?") >+ project = query[1] > gsub("\.git$", "", project) > >- tag = url[2] >- gsub("\"$", "", tag) >- >+ if (match(query[2], "^tag=")) { >+ split(query[2], tag_, "=") >+ tag = tag_[2] >+ } else { >+ tag = url[2] >+ gsub("\"$", "", tag) >+ } > gh_tuple[gh_tuple_len++] = sprintf(\ > "%s:%s:%s:%s", account, project, tag, package_name) > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220548
:
184161
|
184162
|
184169