]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Commit TAs into cache fallback on success
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 11 Nov 2024 21:06:14 +0000 (15:06 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 11 Nov 2024 21:06:14 +0000 (15:06 -0600)
Forgot these during c7be17b62db6262e0bc9e33b7b9ad049b8563453.

src/cache.c
src/object/tal.c

index b56c33405f6446c4bcde894cf9c367d7a06dd32f..509aff37af4602212e627923115a8f656fad3736 100644 (file)
@@ -925,7 +925,6 @@ cache_commit_rpp(char const *caRepository, struct rpp *rpp)
        rpp->nfiles = 0;
 }
 
-/* XXX not called */
 void
 cache_commit_file(struct cache_mapping *map)
 {
index 5c33c99db6cf54a2e128b24eb3b343d305c4c144..f8d01321ae9313faeb742f320eae5a85cc3d938d 100644 (file)
@@ -174,6 +174,7 @@ traverse_tal(char const *tal_path, void *arg)
                        continue;
                if (validate_ta(&tal, &map) != 0)
                        continue;
+               cache_commit_file(&map);
                goto end2; /* Happy path */
        }
 
@@ -185,6 +186,7 @@ traverse_tal(char const *tal_path, void *arg)
                        continue;
                if (validate_ta(&tal, &map) != 0)
                        continue;
+               cache_commit_file(&map);
                goto end2; /* Happy path */
        }