Created
May 19, 2019 05:53
-
-
Save derekschrock/456000bab8f1327dd0842363041dac3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Mk/Scripts/do-depends.sh b/Mk/Scripts/do-depends.sh | |
index 5469bff33337..3df2989d165a 100644 | |
--- a/Mk/Scripts/do-depends.sh | |
+++ b/Mk/Scripts/do-depends.sh | |
@@ -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