[gnome-build-meta/abderrahim/ostree-checksum] plugins/ostree.py: generate sha256 sum of files during build




commit ee42068ec12298fff17e033ba5bec0cdd41fc9b3
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Sun Jan 31 18:59:07 2021 +0100

    plugins/ostree.py: generate sha256 sum of files during build
    
    This should help pinpoint where files are getting corrupted

 plugins/ostree.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/ostree.py b/plugins/ostree.py
index d5de139d..45dce916 100644
--- a/plugins/ostree.py
+++ b/plugins/ostree.py
@@ -6,6 +6,7 @@ class OstreeElement(Element):
     BST_FORBID_RDEPENDS = True
     BST_FORBID_SOURCES = True
     BST_STRICT_REBUILD = True
+    BST_ARTIFACT_VERSION = 1
 
     def preflight(self):
         pass
@@ -92,6 +93,8 @@ class OstreeElement(Element):
             run_command("ostree", "init", "--repo", repopath, "--mode", "archive")
             run_command("ostree", "pull-local", "--repo", repopath, barerepopath)
 
+        run_command("sh", "-c", f"find {repopath} -type f | xargs sha256sum")
+
         return repopath
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]