toaster: allow dots in user path names
PATCH 1/1 toaster: allow dots in user path names
From: David Reyna <[email protected]>
The dot '.' character should be allowed in the user paths for local non-git layers, DL_DIR, and SSTATE_DIR.
[YOCTO #10650]
Signed-off-by David Reyna <[email protected]>
--- bitbake/lib/toaster/toastergui/static/js/importlayer.js | 2 +- bitbake/lib/toaster/toastergui/templates/importlayer.html | 2 +- bitbake/lib/toaster/toastergui/templates/projectconf.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-)
bitbake/lib/toaster/toastergui/static/js/importlayer.js +1 -1
@@ -407,7 +407,7 @@ function importLayerPageInit (ctx) { var input = $(this); var reBeginWithSlash = /^\//; var reCheckVariable = /^\$/; - var re = /([ <>\\|":\.%\?\*]+)/; + var re = /([ <>\\|":%\?\*]+)/; var invalidDir = re.test(input.val()); var invalidSlash = reBeginWithSlash.test(input.val());
bitbake/lib/toaster/toastergui/templates/importlayer.html +1 -1
@@ -126,7 +126,7 @@ <label for="local-dir-path" class="control-label">Enter the absolute path to the layer directory</label> <input type="text" class="form-control" id="local-dir-path" required/> <p class="help-block" id="hintError-dir-path-starts-with-slash" style="display:none;">The absolute path must start with "/".</p> - <p class="help-block" id="hintError-dir-path" style="display:none;">The directory path cannot include spaces or any of these characters: . \ ? % * : | " " < ></p> + <p class="help-block" id="hintError-dir-path" style="display:none;">The directory path cannot include spaces or any of these characters: \ ? % * : | " " < ></p> </div> </fieldset>
bitbake/lib/toaster/toastergui/templates/projectconf.html +3 -3
@@ -41,7 +41,7 @@ </div> <button id="apply-change-dl_dir" class="btn btn-default" type="button">Save</button> <button id="cancel-change-dl_dir" type="button" class="btn btn-link">Cancel</button> - <p class="help-block" id="hintError-dl_dir" style="display:none;">The directory path cannot include spaces or any of these characters: . \ ? % * : | " " < ></p> + <p class="help-block" id="hintError-dl_dir" style="display:none;">The directory path cannot include spaces or any of these characters: \ ? % * : | " " < ></p> <p class="help-block" id="hintError-initialChar-dl_dir" style="display:none;">The directory path should either start with a /, e.g. /home/toaster/downloads; or with a variable, e.g. ${TOPDIR}/downloads.</p> </form> </dd>
@@ -593,7 +593,7 @@ $(document).ready(function() { var input = $(this); var reBeginWithSlash = /^\//; var reCheckVariable = /^\$/; - var re = /([ <>\\|":\.%\?\*]+)/; + var re = /([ <>\\|":%\?\*]+)/; var invalidDir = re.test(input.val()); var invalidSlash = reBeginWithSlash.test(input.val()); var invalidVar = reCheckVariable.test(input.val());
@@ -958,7 +958,7 @@ $(document).ready(function() { var input = $(this); var reBeginWithSlash = /^\//; var reCheckVariable = /^\$/; - var re = /([ <>\\|":\.%\?\*]+)/; + var re = /([ <>\\|":%\?\*]+)/; var invalidDir = re.test(input.val()); var invalidSlash = reBeginWithSlash.test(input.val()); var invalidVar = reCheckVariable.test(input.val());
Signature · 1 line
1.9.1