Skip to content

Commit

Permalink
Add YAML::XS::LoadBlessed = 0 to fissile code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 23, 2024
1 parent 180928d commit 0b7d5b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Build/Fissile.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package Build::Fissile;

use strict;

eval { require YAML::XS; };
eval { require YAML::XS; $YAML::XS::LoadBlessed = 0; };
*YAML::XS::LoadFile = sub {die("YAML::XS is not available\n")} unless defined &YAML::XS::LoadFile;

sub parse {
Expand Down
2 changes: 1 addition & 1 deletion build-recipe-fissile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ recipe_build_fissile() {

# Save the resulting images to tarballs.
mkdir -p $BUILD_ROOT$TOPDIR/FISSILE
non_built_images=$(perl -MYAML::XS -e "print join('|', @{YAML::XS::LoadFile('$BUILD_ROOT$TOPDIR/SOURCES/fissile.yml')->{'DockerImageDeps'}})")
non_built_images=$(perl -MYAML::XS -e "$YAML::XS::LoadBlessed = 0; print join('|', @{YAML::XS::LoadFile('$BUILD_ROOT$TOPDIR/SOURCES/fissile.yml')->{'DockerImageDeps'}})")

for image in $(chroot $BUILD_ROOT docker images --format "{{.Repository}}:{{.Tag}}" | grep -v $non_built_images); do
echo "Saving image $image"
Expand Down

0 comments on commit 0b7d5b3

Please sign in to comment.