Displaying 3 results from an estimated 3 matches for "16834f7".
Did you mean:
1634,7
2015 Jul 17
0
[PATCH 1/2] mllib: add and use read_first_line_from_file
...Some (String.sub str (i+1) (String.length str - (i+1)))
with Not_found -> None
+
+let read_first_line_from_file filename =
+ let chan = open_in filename in
+ let line = input_line chan in
+ close_in chan;
+ line
diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli
index 550f37f..16834f7 100644
--- a/mllib/common_utils.mli
+++ b/mllib/common_utils.mli
@@ -181,3 +181,7 @@ val guest_arch_compatible : string -> bool
val last_part_of : string -> char -> string option
(** Return the last part of a string, after the specified separator. *)
+
+val read_first_line_from_file :...
2015 Aug 11
3
[PATCH 1/2] mllib: add normalize_arch helper
...ot;, ("i386"|"i486"|"i586"|"i686") -> true
+ | "x86_64", "i386" -> true
| _ -> false
(** Return the last part of a string, after the specified separator. *)
diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli
index 16834f7..ac232af 100644
--- a/mllib/common_utils.mli
+++ b/mllib/common_utils.mli
@@ -175,6 +175,11 @@ val qemu_input_filename : string -> string
val mkdir_p : string -> int -> unit
(** Creates a directory, and its parents if missing. *)
+val normalize_arch : string -> string
+(** Normalize...
2015 Jul 17
4
[PATCH v2 0/2] basic subscription-manager support in virt-customize
Hi,
this is the v2 of a series introducing basic support for
registering/attaching/unregistering RHEL guests using
subscription-manager, so it is possible to do for example:
$ virt-customize -a rhel-guest.qcow2 \
--sm-credentials user:file:/path/to/password-file --sm-register \
--sm-attach file:/path/to/pool-file \
--install pkg1 --install pkg2 .. \
--sm-remove --sm-unregister