ports/www/drush/patches/patch-includes_environment_inc

32 lines
866 B
Text

Index: includes/environment.inc
--- includes/environment.inc.orig
+++ includes/environment.inc
@@ -531,7 +531,12 @@ function drush_is_mingw($os = NULL) {
* Return tar executable name specific for the current OS
*/
function drush_get_tar_executable() {
- return drush_is_windows() ? (drush_is_mingw() ? "tar.exe" : "bsdtar.exe") : "tar";
+ if (drush_is_openbsd()) {
+ return 'gtar';
+ }
+ else {
+ return drush_is_windows() ? (drush_is_mingw() ? "tar.exe" : "bsdtar.exe") : "tar";
+ }
}
/**
@@ -540,6 +545,14 @@ function drush_get_tar_executable() {
*/
function drush_is_osx($os = NULL) {
return _drush_test_os($os, array("DARWIN"));
+}
+
+/**
+ * Check if the operating system is OS X.
+ * This will return TRUE for Mac OS X (Darwin).
+ */
+function drush_is_openbsd($os = NULL) {
+ return _drush_test_os($os, array("OPENBSD"));
}
/**