pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/fetch mk/fetch/fetch.mk: don't print double-slash i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d01b2ae11a7
branches:  trunk
changeset: 414657:3d01b2ae11a7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Mar 30 22:44:26 2020 +0000

description:
mk/fetch/fetch.mk: don't print double-slash in pathname

diffstat:

 mk/fetch/fetch.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f672fba19dd2 -r 3d01b2ae11a7 mk/fetch/fetch.mk
--- a/mk/fetch/fetch.mk Mon Mar 30 22:11:25 2020 +0000
+++ b/mk/fetch/fetch.mk Mon Mar 30 22:44:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: fetch.mk,v 1.70 2018/01/11 08:54:37 alnsn Exp $
+# $NetBSD: fetch.mk,v 1.71 2020/03/30 22:44:26 rillig Exp $
 
 .if empty(INTERACTIVE_STAGE:Mfetch) && empty(FETCH_MESSAGE:U)
 _MASTER_SITE_BACKUP=   ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -316,7 +316,7 @@
                case $$d in                                             \
                ""|${DISTDIR})  continue ;;                             \
                esac;                                                   \
-               file="$$d/${DIST_SUBDIR}/${.TARGET:T}";                 \
+               file="$$d/${DIST_SUBDIR:D${DIST_SUBDIR}/}${.TARGET:T}"; \
                if ${TEST} -f $$file; then                              \
                        ${ECHO} "Using $$file";                         \
                        ${RM} -f ${.TARGET};                            \



Home | Main Index | Thread Index | Old Index