Skip to content

Commit ac8892b

Browse files
committed
Accept arbitrary filenames into URLs in build-manifest
instead of combining the component and target into a URL.
1 parent c7e724a commit ac8892b

File tree

1 file changed

+4
-4
lines changed
  • src/tools/build-manifest/src

1 file changed

+4
-4
lines changed

src/tools/build-manifest/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl Builder {
293293

294294
pkg.target.insert(host.to_string(), Target {
295295
available: true,
296-
url: Some(self.url("rust", host)),
296+
url: Some(self.url(&filename)),
297297
hash: Some(digest),
298298
components: Some(components),
299299
extensions: Some(extensions),
@@ -325,7 +325,7 @@ impl Builder {
325325

326326
(name.to_string(), Target {
327327
available: true,
328-
url: Some(self.url(pkgname, name)),
328+
url: Some(self.url(&filename)),
329329
hash: Some(digest),
330330
components: None,
331331
extensions: None,
@@ -338,11 +338,11 @@ impl Builder {
338338
});
339339
}
340340

341-
fn url(&self, component: &str, target: &str) -> String {
341+
fn url(&self, filename: &str) -> String {
342342
format!("{}/{}/{}",
343343
self.s3_address,
344344
self.date,
345-
self.filename(component, target))
345+
filename)
346346
}
347347

348348
fn filename(&self, component: &str, target: &str) -> String {

0 commit comments

Comments
 (0)