solenv/bin/modules/installer/simplepackage.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1042ffc16be570f42abc4d68dcb2f6deeb290f52
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Fri Oct 22 21:47:31 2021 +0200
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Fri Oct 22 21:47:31 2021 +0200

    hdiutil flatten/unflatten was removed in macOS 11
    
    Change-Id: If5a1a70f8a7428d81668704f93fa7a1f45058b68

diff --git a/solenv/bin/modules/installer/simplepackage.pm 
b/solenv/bin/modules/installer/simplepackage.pm
index 33ee1f29a04d..7b5b20bc93e2 100644
--- a/solenv/bin/modules/installer/simplepackage.pm
+++ b/solenv/bin/modules/installer/simplepackage.pm
@@ -461,7 +461,7 @@ sub create_package
         my $megabytes = 1500;
         $megabytes = 2000 if $ENV{'ENABLE_DEBUG'};
         $systemcall = "cd $localtempdir && hdiutil create -megabytes 
$megabytes -srcfolder $folder $archive -ov -fs HFS+ -volname \"$volume_name\" 
-format UDBZ";
-        if (( $ref ne "" ) && ( $$ref ne "" )) {
+        if (( $ref ne "" ) && ( $$ref ne "" ) && system("hdiutil 2>&1 | grep 
unflatten") == 0) {
             $systemcall .= " && hdiutil unflatten $archive && Rez -a $$ref -o 
$archive && hdiutil flatten $archive";
         }
     }

Reply via email to