package: make dir if needed (#33644)

This commit is contained in:
Eric - CAP-REL 2025-03-28 23:09:50 +01:00 committed by GitHub
parent 70e4d1ccd0
commit e6ebf315ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -414,6 +414,10 @@ if ($nboftargetok) {
print $ret."\n";
# Copy to final dir
$NEWDESTI=$DESTI;
if ( !-d "$NEWDESTI/signatures" ) {
use File::Path qw( make_path );
make_path "$NEWDESTI/signatures" or die "Failed to create path: $NEWDESTI/signatures";
}
print "Copy \"$SOURCE/htdocs/install/filelist-$MAJOR.$MINOR.$BUILD.xml\" to $NEWDESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml\n";
use File::Copy qw(copy);
copy "$SOURCE/htdocs/install/filelist-$MAJOR.$MINOR.$BUILD.xml", "$NEWDESTI/signatures/filelist-$MAJOR.$MINOR.$BUILD.xml";