mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
fix: allow using directories as contents in archlinux packager (#568)
* fix: Recursively add files if content is directory * fix: Skip contents with wrong packager value * test: Add acceptance tests for directories
This commit is contained in:
Vendored
+5
@@ -48,6 +48,11 @@ RUN test -f /usr/share/whatever/folder/folder2/file2
|
||||
RUN test -d /var/log/whatever
|
||||
RUN test -d /usr/share/foo
|
||||
RUN test -d /usr/foo/bar/something
|
||||
RUN test -d /etc/something
|
||||
RUN test -f /etc/something/a
|
||||
RUN test -f /etc/something/b
|
||||
RUN test -d /etc/something/c
|
||||
RUN test -f /etc/something/c/d
|
||||
RUN test $(stat -c %a /usr/sbin/fake) -eq 4755
|
||||
RUN test -f /tmp/preinstall-proof
|
||||
RUN test -f /tmp/postinstall-proof
|
||||
|
||||
+5
@@ -51,6 +51,11 @@ RUN test -f /usr/share/whatever/folder/folder2/file2
|
||||
RUN test -d /var/log/whatever
|
||||
RUN test -d /usr/share/foo
|
||||
RUN test -d /usr/foo/bar/something
|
||||
RUN test -d /etc/something
|
||||
RUN test -f /etc/something/a
|
||||
RUN test -f /etc/something/b
|
||||
RUN test -d /etc/something/c
|
||||
RUN test -f /etc/something/c/d
|
||||
RUN test $(stat -c %a /usr/bin/fake) -eq 4755
|
||||
RUN test -f /tmp/preinstall-proof
|
||||
RUN test -f /tmp/postinstall-proof
|
||||
|
||||
+2
@@ -27,6 +27,8 @@ contents:
|
||||
- src: ./testdata/whatever.conf
|
||||
dst: /etc/foo/whatever.conf
|
||||
type: config
|
||||
- src: ./testdata/something
|
||||
dst: /etc/something
|
||||
- src: ./testdata/fake
|
||||
dst: /usr/sbin/fake
|
||||
packager: deb
|
||||
|
||||
Vendored
+5
@@ -51,6 +51,11 @@ RUN test -f /usr/share/whatever/folder/folder2/file2
|
||||
RUN test -d /var/log/whatever
|
||||
RUN test -d /usr/share/foo
|
||||
RUN test -d /usr/foo/bar/something
|
||||
RUN test -d /etc/something
|
||||
RUN test -f /etc/something/a
|
||||
RUN test -f /etc/something/b
|
||||
RUN test -d /etc/something/c
|
||||
RUN test -f /etc/something/c/d
|
||||
RUN test $(stat -c %a /usr/sbin/fake) -eq 4755
|
||||
RUN test -f /tmp/preinstall-proof
|
||||
RUN test -f /tmp/postinstall-proof
|
||||
|
||||
Vendored
+5
@@ -50,6 +50,11 @@ RUN test -f /usr/share/whatever/folder/folder2/file2
|
||||
RUN test -d /var/log/whatever
|
||||
RUN test -d /usr/share/foo
|
||||
RUN test -d /usr/foo/bar/something
|
||||
RUN test -d /etc/something
|
||||
RUN test -f /etc/something/a
|
||||
RUN test -f /etc/something/b
|
||||
RUN test -d /etc/something/c
|
||||
RUN test -f /etc/something/c/d
|
||||
RUN test $(stat -c %a /usr/sbin/fake) -eq 4755
|
||||
RUN test -f /tmp/preinstall-proof
|
||||
RUN test -f /tmp/postinstall-proof
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
a
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
b
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
d
|
||||
Reference in New Issue
Block a user