Displaying 2 results from an estimated 2 matches for "2d373f9".
Did you mean:
23739
2016 Dec 07
0
[PATCH v3 4/6] mllib: modify nsplit to take optional noempty and count arguments
...any splits as possible
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
mllib/common_utils.ml | 12 +++++++++---
mllib/common_utils.mli | 12 ++++++++++--
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index 78618f5..2d373f9 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -92,15 +92,21 @@ module String = struct
s' ^ s2 ^ replace s'' s1 s2
)
- let rec nsplit sep str =
+ let rec nsplit ?(noempty = true) ?(count = -1) sep str =
let len = length str in
let...
2016 Dec 07
12
[PATCH v3 0/6] Import directly from OVA tar archive if possible
v3: Addressed Pino's comments, namely:
- input_ova.ml
- untar takes list of paths
- renamed untar_partial to untar_metadata
- replaced uggly regex with nsplit
- tests
- test changes are part of the main commit
- renamed test-data/guestfs-hashsums.sh to test-data/test-utils.sh
- renamed qemu_version to qemu_is_version and moved it to
test-data/test-utils.sh
- normalize paths