2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-25 17:24:11 +00:00

test(genesis): pin the pooled Genesis DEB as an independent file

The pooled package carries the release bytes, which the existing digest check
covers, but it must not be the release file itself; assert the identity is
distinct so a link cannot come back unnoticed.
This commit is contained in:
Vinícius Ferrão
2026-08-24 13:45:23 -03:00
parent 8ab9b909a1
commit 7b9dcaeff7
+6
View File
@@ -198,6 +198,12 @@ sub test_deb_consumer {
'legacy Genesis DEB remains available');
ok(!-e "$apt_root/pool/main/noble/xcat-genesis-openembedded-stale.deb",
'stale OpenEmbedded DEB is not collected');
# The published package must be a file of its own: sharing an inode with the release
# would make a later write through either path change what the other one holds.
my @pooled = stat($pool_package);
my @released = stat("$release_root/deb/$package");
isnt("$pooled[0]:$pooled[1]", "$released[0]:$released[1]",
'pooled DEB is published independently of the release file');
my $collision = "$tmp/apt-collision";
make_path("$collision/ubuntu24.04");