This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=218f3e1ba40c9347973dbf0e23c3e4373f79b713

commit 218f3e1ba40c9347973dbf0e23c3e4373f79b713
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Oct 5 05:08:54 2018 +0200

    t-unpack-divert-hardlink: Fix not-root checks
---
 t-unpack-divert-hardlink/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/t-unpack-divert-hardlink/Makefile 
b/t-unpack-divert-hardlink/Makefile
index 806b17385..81bd245ba 100644
--- a/t-unpack-divert-hardlink/Makefile
+++ b/t-unpack-divert-hardlink/Makefile
@@ -18,11 +18,12 @@ test-case:
        # test if unpack can divert a hardlink
        $(DPKG_INSTALL) pkg-hardlink.deb
        $(call pkg_is_installed,pkg-hardlink)
-       test -f /test-file.distrib
-       test -f /test-hardlink.distrib
-       cmp /test-file.distrib /test-hardlink.distrib
-       test "`stat -c '%i' /test-file.distrib`" = \
-            "`stat -c '%i' /test-hardlink.distrib`"
+       test -f $(DPKG_INSTDIR)/test-file.distrib
+       test -f $(DPKG_INSTDIR)/test-hardlink.distrib
+       cmp $(DPKG_INSTDIR)/test-file.distrib \
+           $(DPKG_INSTDIR)/test-hardlink.distrib
+       test "`stat -c '%i' $(DPKG_INSTDIR)/test-file.distrib`" = \
+            "`stat -c '%i' $(DPKG_INSTDIR)/test-hardlink.distrib`"
 
 test-clean:
        $(DPKG_PURGE) pkg-hardlink

-- 
Dpkg.Org's dpkg

Reply via email to