search for: add_paths

Displaying 8 results from an estimated 8 matches for "add_paths".

2013 Dec 09
2
[PATCH] sysprep: allow to specify globbing for --delete
...ile changed, 3 insertions(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation_delete.ml b/sysprep/sysprep_operation_delete.ml index de78a87..59d5485 100644 --- a/sysprep/sysprep_operation_delete.ml +++ b/sysprep/sysprep_operation_delete.ml @@ -27,7 +27,9 @@ let add_paths path = paths := path :: !paths let path_perform g root = let paths = List.rev !paths in - List.iter g#rm_rf paths; + if paths <> [] then ( + List.iter (fun glob -> Array.iter g#rm_rf (g#glob_expand glob)) paths + ); [] let op = { -- 1.8.3.1
2006 Mar 22
1
Engine Trouble With Edge
First off, yes, I did follow the "Using Engines With Edge Rails" post on the Engines wiki. So here''s my problem. In ActiveSupport 1.2.5, there was a class called RootLoadingModule which had a parent class LoadingModule in activesupport/lib/active_support/dependencies.rb ie. RootLoadingModule < LoadingModule < Module My problem is that there is no
2013 Dec 09
1
[PATCH] sysprep: mention globbing in help for --delete
...ath to remove. + +You can use shell glob characters in the specified path; note that such +metacharacters might require proper escape. For example: + + virt-sysprep --delete '/var/log/*.log'."); extra_args = [ { extra_argspec = ("--delete", Arg.String add_paths, s_"path" ^ " " ^ s_"File or directory to be removed on guest"); extra_pod_argval = Some "PATHNAME"; -- 1.8.3.1
2013 Oct 22
4
[PATCH] sysprep: add feature of removing specified paths
...GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + *) + +open Common_utils +open Sysprep_operation +open Common_gettext.Gettext + +module G = Guestfs + +let paths= ref [] +let add_paths path= paths := path :: !paths + +let path_perform g root = + let paths = List.rev !paths in + if paths <> [] then ( + List.iter (fun glob -> Array.iter g#rm_rf (g#glob_expand glob)) paths + ); + [] + +let op = { + defaults with + name = "remove-path"; + enabled_by_d...
2013 Dec 09
3
[PATCH] sysprep: mention globbing in help for --delete
...option to specify a path to remove."); +Use the I<--delete> option to specify a path to remove. + +You can use shell glob characters in the specified path, i.e. +C</some/dir/prefix*>."); extra_args = [ { extra_argspec = ("--delete", Arg.String add_paths, s_"path" ^ " " ^ s_"File or directory to be removed on guest"); extra_pod_argval = Some "PATHNAME"; -- 1.8.3.1
2013 Dec 09
0
Re: [PATCH] sysprep: allow to specify globbing for --delete
...1 deletion(-) > > diff --git a/sysprep/sysprep_operation_delete.ml b/sysprep/sysprep_operation_delete.ml > index de78a87..59d5485 100644 > --- a/sysprep/sysprep_operation_delete.ml > +++ b/sysprep/sysprep_operation_delete.ml > @@ -27,7 +27,9 @@ let add_paths path = paths := path :: !paths > > let path_perform g root = > let paths = List.rev !paths in > - List.iter g#rm_rf paths; > + if paths <> [] then ( > + List.iter (fun glob -> Array.iter g#rm_rf (g#glob_expand glob)) paths > + ); > [] > > let...
2006 Mar 06
20
How painful is the 1.0 -> 1.1 upgrade going to be?
Does anyone have a sense for how painful the 1.0 -> 1.1 upgrade is going to be for existing apps? I''m finishing up my first real RoR application with Rails 1.0. I can live with it staying at that level, but I really want to use the has_many :through attribute to clean up some of my code. I''m not particularly interested in edge Rails, mainly because the documentation for
2014 Jan 21
1
[PATCH 1/2] sysprep: Update comments.
--- sysprep/sysprep_operation.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation.mli b/sysprep/sysprep_operation.mli index 61dde72..eb89db4 100644 --- a/sysprep/sysprep_operation.mli +++ b/sysprep/sysprep_operation.mli @@ -16,14 +16,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *)