Blame SOURCES/0010-lib-Remove-Utils.metaversion.patch

0ee30e
From 67ebe6585e7db9cfc1f01de9777f780db42868f2 Mon Sep 17 00:00:00 2001
0ee30e
From: "Richard W.M. Jones" <rjones@redhat.com>
0ee30e
Date: Tue, 22 Mar 2022 13:39:57 +0000
0ee30e
Subject: [PATCH] lib: Remove Utils.metaversion
0ee30e
0ee30e
This was used before we turned the helpers into OCaml modules but is
0ee30e
now dead code, remove it.
0ee30e
0ee30e
Fixes: commit 4de22686fe74e1711efd9bfed3f663b67e7ad69e
0ee30e
Fixes: commit 724ecb5e887e5b71db836143ec0c0d8a20b05903
0ee30e
Fixes: commit 5609c73c615a8f12c5c6d50908bb4761bdc16173
0ee30e
(cherry picked from commit c208bc97d863aa43857c72608a1fc57ab50047ed)
0ee30e
---
0ee30e
 lib/utils.ml  |  2 --
0ee30e
 lib/utils.mli | 11 -----------
0ee30e
 2 files changed, 13 deletions(-)
0ee30e
0ee30e
diff --git a/lib/utils.ml b/lib/utils.ml
0ee30e
index 7b16dd8b..4f0ff67a 100644
0ee30e
--- a/lib/utils.ml
0ee30e
+++ b/lib/utils.ml
0ee30e
@@ -164,8 +164,6 @@ let rec wait_for_file filename timeout =
0ee30e
     wait_for_file filename (timeout-1)
0ee30e
   )
0ee30e
 
0ee30e
-let metaversion = Digest.to_hex (Digest.string Config.package_version_full)
0ee30e
-
0ee30e
 let with_nbd_connect_unix ?(meta_contexts = []) ~socket f =
0ee30e
   let nbd = NBD.create () in
0ee30e
   protect
0ee30e
diff --git a/lib/utils.mli b/lib/utils.mli
0ee30e
index 76a2ec8c..3f8e4b3c 100644
0ee30e
--- a/lib/utils.mli
0ee30e
+++ b/lib/utils.mli
0ee30e
@@ -67,17 +67,6 @@ val wait_for_file : string -> int -> bool
0ee30e
 (** [wait_for_file filename timeout] waits up to [timeout] seconds for
0ee30e
     [filename] to appear.  It returns [true] if the file appeared. *)
0ee30e
 
0ee30e
-val metaversion : string
0ee30e
-(** When writing the metadata files between versions we serialize this
0ee30e
-    string first to ensure the binary metadata blob is compatible.
0ee30e
-
0ee30e
-    This prevents mixing and matching helpers between incompatible
0ee30e
-    versions of virt-v2v (which could cause a crash) and discourages
0ee30e
-    people from trying to write their own metadata.
0ee30e
-
0ee30e
-    Eventually we may switch to using an "open metadata" format instead
0ee30e
-    (eg. XML). *)
0ee30e
-
0ee30e
 val with_nbd_connect_unix : ?meta_contexts:string list ->
0ee30e
                             socket:string ->
0ee30e
                             (NBD.t -> 'a) ->
0ee30e
-- 
0ee30e
2.31.1
0ee30e