From 8f8960e1ca30a44b00688691cc9688b0d2a14cd9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 3 Jun 2019 08:41:42 -0400 Subject: Minor improvements: * testdir can be changed * testdir is no longer incorporated into the delivery * pip calls will use an index if defined * multiarg now returns empty string if input is empty * remove clone repos if they already exist. guarantees pristine code/tests --- source/util.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/util.d') diff --git a/source/util.d b/source/util.d index 1d0abf1..3624d88 100644 --- a/source/util.d +++ b/source/util.d @@ -82,7 +82,6 @@ string safe_spec(string s) { return "'" ~ s ~ "'"; } - string safe_install(string[] specs) { string[] result; foreach (record; specs) { @@ -91,7 +90,6 @@ string safe_install(string[] specs) { return result.join(" "); } - string safe_install(string specs) { string[] result; foreach (record; specs.split(" ")) { @@ -226,7 +224,7 @@ string interpolate(string[string]aa, string str, char delim = '$') { if (pair.key != match) continue; s = s.replace(delim ~ pair.key, pair.value) - .replace(format("%c{%s}", delim, pair.key), pair.value); + .replace(format("%c{%s}", delim, pair.key), pair.value); } } -- cgit