Displaying 5 results from an estimated 5 matches for "input_all_lin".
Did you mean:
input_all_lines
2018 Dec 03
3
[supermin PATCH] build: ignore empty files
...g on the file type, read or unpack the file. *)
let appliance =
match file_type with
+ | Uncompressed Empty | GZip Empty | XZ Empty ->
+ appliance
| Uncompressed ((Packages|Hostfiles|Excludefiles) as t) ->
let chan = open_in file in
let lines = input_all_lines chan in
@@ -294,7 +298,7 @@ and update_appliance appliance lines = function
String.sub path 1 (n-1)
) lines in
{ appliance with excludefiles = appliance.excludefiles @ lines }
- | Base_image -> assert false
+ | Base_image | Empty -> assert false
(* Determine the [fil...
2018 Dec 03
0
Re: [supermin PATCH] build: ignore empty files
...the file. *)
> let appliance =
> match file_type with
> + | Uncompressed Empty | GZip Empty | XZ Empty ->
> + appliance
> | Uncompressed ((Packages|Hostfiles|Excludefiles) as t) ->
> let chan = open_in file in
> let lines = input_all_lines chan in
> @@ -294,7 +298,7 @@ and update_appliance appliance lines = function
> String.sub path 1 (n-1)
> ) lines in
> { appliance with excludefiles = appliance.excludefiles @ lines }
> - | Base_image -> assert false
> + | Base_image | Empty -> assert...
2018 Dec 03
4
[supermin PATCH v2 0/3] Better handle no config files
This is a "merge" of two previous series:
https://www.redhat.com/archives/libguestfs/2018-December/msg00015.html
https://www.redhat.com/archives/libguestfs/2018-December/msg00020.html
The goal is to handle better situations like:
- empty file in the appliance directory
- no config files available in the packages to include in an appliance
Compared to the two series, the changes are:
-
2016 Aug 31
8
[PATCH 0/2] supermin: use /etc/os-release
Hi,
let's make supermin use /etc/os-release as primary source instead of
the various release files in /etc; apparently distros (e.g. openSUSE)
are starting removing them.
Thanks,
Pino Toscano (2):
Add simple handling of /etc/os-release
Use os-release to detect the distro
src/Makefile.am | 3 +++
src/dpkg.ml | 3 ++-
src/os_release.ml | 78
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...s\n%!"
+ file (string_of_file_type file_type);
+
+ (* Depending on the file type, read or unpack the file. *)
+ let appliance =
+ match file_type with
+ | Uncompressed ((Packages|Hostfiles|Excludefiles) as t) ->
+ let chan = open_in file in
+ let lines = input_all_lines chan in
+ close_in chan;
+ update_appliance appliance lines t
+ | GZip ((Packages|Hostfiles|Excludefiles) as t) ->
+ let cmd = sprintf "zcat %s" (quote file) in
+ let lines = run_command_get_lines cmd in
+ update_appliance appliance lines t
+...