Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/Mk/Scripts/do-depends.sh b/Mk/Scripts/do-depends.sh
index 5469bff33337..1159b400d33f 100644
--- a/Mk/Scripts/do-depends.sh
+++ b/Mk/Scripts/do-depends.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD$
+# $FreeBSD: head/Mk/Scripts/do-depends.sh 455690 2017-12-07 01:51:00Z bdrewery $
#
# MAINTAINER: portmgr@FreeBSD.org
@@ -11,7 +11,7 @@ validate_env dp_RAWDEPENDS dp_DEPTYPE dp_DEPENDS_TARGET dp_DEPENDS_PRECLEAN \
dp_DEPENDS_CLEAN dp_DEPENDS_ARGS dp_USE_PACKAGE_DEPENDS \
dp_USE_PACKAGE_DEPENDS_ONLY dp_PKG_ADD dp_PKG_INFO dp_WRKDIR \
dp_PKGNAME dp_STRICT_DEPENDS dp_LOCALBASE dp_LIB_DIRS dp_SH \
- dp_SCRIPTSDIR PORTSDIR dp_MAKE dp_MAKEFLAGS
+ dp_SCRIPTSDIR PORTSDIR dp_MAKE dp_MAKEFLAGS dp_PORTEPOCH
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_DO_DEPENDS}" ] && set -x
@@ -161,7 +161,7 @@ for _line in ${dp_RAWDEPENDS} ; do
esac ;;
*)
case ${pattern} in
- *\>*|*\<*|*=*) fct=find_package ;;
+ *\>*|*\<*|*=*) fct=find_package; sed "s/</,${dp_PORTEPOCH}</;s/$/,${dp_PORTEPOCH}/;s/^,1//"; ;;
/nonexistent) fct=false ;;
/*) fct=find_file ;;
*) fct=find_file_path ;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.