File: 2004_reproducible_build.patch

package info (click to toggle)
rust-microformats 0.15.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,092 kB
  • sloc: javascript: 71; makefile: 26; sh: 1
file content (28 lines) | stat: -rw-r--r-- 810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/1109484
Last-Update: 2025-07-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/build.rs
+++ b/library/build.rs
@@ -183,6 +183,7 @@
 }
 
 fn collect_fixtures_for(suite: &str) -> Vec<String> {
+    let mut fixtures = Vec::new();
     get_mf_fixture_dir_for(suite)
         .read_dir()
         .unwrap_or_else(|_| panic!("Couldn't find fixtures for testing '{}' support.", suite))
@@ -210,7 +211,7 @@
                 .unwrap_or_default();
 
             let test_name = format!("{}/{}", suite, file_name);
-            test_name
-        })
-        .collect()
+            fixtures.push(test_name)
+        });
+    return fixtures;
 }