From 30efd4ba1b9b595f1184ff9fc3441bf4f5391206 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Thu, 18 Feb 2010 15:02:13 +0100 Subject: Make createpackage.pl auto-patch the capabilites for self signed packages This allows you to simply call 'make ok_sis' to have a sis package which is self signed with patched capabilities, ready for install on an consumer system. Reviewed-by: Shane Kearns (cherry picked from commit 1f9e501bf9f3287a424b36915d4436a74cf21847) --- bin/createpackage.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/createpackage.pl b/bin/createpackage.pl index 3a61bc0..c16c692 100755 --- a/bin/createpackage.pl +++ b/bin/createpackage.pl @@ -272,6 +272,10 @@ if($stub) { # Create stub SIS. system ("makesis -s $pkgoutput $stub_sis_name"); } else { + if ($certtext eq "Self Signed" && !@certificates) { + print("Patching capabilities for self signed package $certificate\n"); + system ("patch_capabilities $templatepkg $targetplatform"); + } # Create SIS. # The 'and' is because system uses 0 to indicate success. system ("makesis $pkgoutput $unsigned_sis_name") and die ("makesis failed"); -- cgit v0.12