File: 0006-fixup-fixup.patch

package info (click to toggle)
node-glob 10.3.6%2B~cs0.4.15-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,028 kB
  • sloc: javascript: 1,348; sh: 191; makefile: 16
file content (37 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
From: =?utf-8?b?SsOpcsOpbXkgTGFs?= <kapouer@melix.org>
Date: Tue, 28 Oct 2025 23:31:25 +0100
Subject: glob has weird assumptions about paths, fix them

Forwarded: not-needed, upstream shot itself in the foot here
Last-Update: 2025-08-28
---
 fixup.sh | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/fixup.sh b/fixup.sh
index 76baa02..5ef9076 100644
--- a/fixup.sh
+++ b/fixup.sh
@@ -1,5 +1,14 @@
 #!/usr/bin/env bash
 
+set +x
+
+cd dist-tmp
+
+ln -sfT ../cjs cjs/src
+ln -sfT ../mjs mjs/src
+
+cd ..
+
 cat >dist-tmp/cjs/package.json <<!EOF
 {
   "version": "$(node -p 'require("./package.json").version')",
@@ -14,6 +23,4 @@ cat >dist-tmp/mjs/package.json <<!EOF
 }
 !EOF
 
-sync-content dist-tmp dist
-chmod 0755 dist/cjs/src/bin.js
-rm -rf dist-tmp
+mv dist-tmp dist