From 9f5a72665fd94dcb082a9710c71e6a6a08386450 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 31 Jul 2018 10:25:29 -0400 Subject: messages & remove outputs not generated --- src/sdp/source/paths_source.d | 8 ++++---- src/sdp/source/read_config_files.d | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/sdp/source') diff --git a/src/sdp/source/paths_source.d b/src/sdp/source/paths_source.d index 5637c80..462fc85 100644 --- a/src/sdp/source/paths_source.d +++ b/src/sdp/source/paths_source.d @@ -241,7 +241,7 @@ template PathMatters() { } string base_dir() { string _dir; - if ( // TODO this should catch generated --source sisupod, untested, needs manifest + if ( auto m = (absolute_path_to_src) .match(regex(r"[/](?P(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension)) ) { @@ -259,7 +259,7 @@ template PathMatters() { } string base_parent_dir_path() { string _dir; - if ( // TODO this should catch generated --source sisupod, untested, needs manifest + if ( auto m = (absolute_path_to_src) .match(regex(r"[/](?P(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension)) ) { @@ -276,7 +276,7 @@ template PathMatters() { .match(rgx.src_formalised_file_path_parts) ) { _dir = asNormalizedPath(m.captures["pth"]).array; - } else if ( // TODO this should catch generated --source sisupod, untested, needs manifest + } else if ( auto m = (absolute_path_to_src) .match(regex(r"[/](?P(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension)) ) { @@ -322,7 +322,7 @@ template PathMatters() { } auto base_parent_dir() { string _dir; - if ( // TODO this should catch generated --source sisupod, untested, needs manifest + if ( auto m = (absolute_path_to_src) .match(regex(r"[/](?P(?:[a-zA-Z0-9._-]+))/sisupod/" ~ filename.stripExtension)) ) { diff --git a/src/sdp/source/read_config_files.d b/src/sdp/source/read_config_files.d index 56ba065..7e6221e 100644 --- a/src/sdp/source/read_config_files.d +++ b/src/sdp/source/read_config_files.d @@ -115,7 +115,6 @@ static template readConfigSite() { if (exists(conf_file)) { debug(io) { writeln("WARNING (io debug) in config file found: ", conf_file); - // writeln(__LINE__, ": found: ", conf_file, " in ", pth); } config_file_str = conf_file.readText; break; -- cgit v1.2.3