search for: 054ee53

Displaying 2 results from an estimated 2 matches for "054ee53".

Did you mean: 053ea53
2015 Nov 09
2
[PATCH 1/2] customize: check for file existence with --edit (RHBZ#1275806)
...exists already; while the is_file call later will fail for non-existing files, with an explicit check a better error message can be provided. --- customize/customize_run.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/customize_run.ml b/customize/customize_run.ml index ff7bd0d..054ee53 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -198,6 +198,9 @@ exec >>%s 2>&1 | `Edit (path, expr) -> message (f_"Editing: %s") path; + if not (g#exists path) then + error (f_"%s does not exist in the guest"...
2015 Nov 09
0
[PATCH 2/2] customize: allow editing symlinked files
...changes the target file, instead of overwrite the symlink with a real file), so it is safe to allow this operation in customize/builder. --- customize/customize_run.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customize/customize_run.ml b/customize/customize_run.ml index 054ee53..ed3c818 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -201,7 +201,7 @@ exec >>%s 2>&1 if not (g#exists path) then error (f_"%s does not exist in the guest") path; - if not (g#is_file path) then + if not (g#is_file ~fo...