Skip to content

Commit ad4cb5d

Browse files
committed
fix pve-eslint link
1 parent addaf8a commit ad4cb5d

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

‎packages/pve-eslint/patches/001-rebuild-for-any-arch.patch‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,27 @@ index faca6ed..9ae2558 100644
4343
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
4444

4545
UPSTREAM=eslint
46+
diff --git a/debian/links b/debian/links
47+
deleted file mode 100644
48+
index 0a1546f..0000000
49+
--- a/debian/links
50+
+++ /dev/null
51+
@@ -1 +0,0 @@
52+
-usr/share/nodejs/pve-eslint/bin/app.js usr/bin/pve-eslint
4653
diff --git a/debian/rules b/debian/rules
47-
index b4c4090..9a632ad 100755
54+
index b4c4090..830042a 100755
4855
--- a/debian/rules
4956
+++ b/debian/rules
50-
@@ -4,4 +4,4 @@
57+
@@ -1,7 +1,11 @@
58+
#!/usr/bin/make -f
59+
+MULTIARCH := $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
60+
61+
%:
5162
dh $@ --with nodejs
5263

5364
execute_after_dh_fixperms:
5465
- chmod --recursive a+x -- debian/*/usr/share/nodejs/pve-eslint/bin/*
55-
+ chmod --recursive a+x -- debian/*/usr/lib/*/nodejs/pve-eslint/bin/*
66+
+ chmod --recursive a+x -- debian/*/usr/lib/$(MULTIARCH)/nodejs/pve-eslint/bin/*
67+
+
68+
+override_dh_link:
69+
+ dh_link /usr/lib/$(MULTIARCH)/nodejs/pve-eslint/bin/app.js /usr/bin/pve-eslint

0 commit comments

Comments
 (0)