Esempio n. 1
0
         sys.exit(1)
 elif format_ == "gpg":
     if not options.gpg_homedir:
         parser.error("gpgdir required when format is gpg")
     safe_unlink(tmpfile)
     gpg_signfile(inputfile, tmpfile, options.gpg_homedir, options.fake,
                  passphrase)
 elif format_ == "emevoucher":
     safe_unlink(tmpfile)
     emevoucher_signfile(inputfile, tmpfile, options.emevoucher_key,
                         options.emevoucher_chain, options.fake, passphrase)
 elif format_ == "mar":
     if not options.mar_cmd:
         parser.error("mar_cmd is required when format is mar")
     safe_unlink(tmpfile)
     mar_signfile(inputfile, tmpfile, options.mar_cmd, options.fake,
                  passphrase)
 elif format_ == "mar_sha384":
     if not options.mar_sha384_cmd:
         parser.error(
             "mar_sha384_cmd is required when format is mar_sha384")
     safe_unlink(tmpfile)
     mar_signfile(inputfile, tmpfile, options.mar_sha384_cmd, options.fake,
                  passphrase)
 elif format_ == "dmg":
     if not options.dmg_keychain:
         parser.error("dmg_keychain required when format is dmg")
     if not options.mac_id:
         parser.error("mac_id required when format is dmg")
     safe_unlink(tmpfile)
     dmg_signpackage(inputfile, tmpfile, options.dmg_keychain,
                     options.mac_id, options.mac_cert_subject_ou,
Esempio n. 2
0
         sys.exit(1)
 elif format_ == "gpg":
     if not options.gpg_homedir:
         parser.error("gpgdir required when format is gpg")
     safe_unlink(tmpfile)
     gpg_signfile(inputfile, tmpfile, options.gpg_homedir, options.fake, passphrase)
 elif format_ == "emevoucher":
     safe_unlink(tmpfile)
     emevoucher_signfile(
         inputfile, tmpfile, options.emevoucher_key, options.emevoucher_chain, options.fake, passphrase
     )
 elif format_ == "mar":
     if not options.mar_cmd:
         parser.error("mar_cmd is required when format is mar")
     safe_unlink(tmpfile)
     mar_signfile(inputfile, tmpfile, options.mar_cmd, options.fake, passphrase)
 elif format_ == "b2gmar":
     if not options.b2gmar_cmd:
         parser.error("b2gmar_cmd is required when format is b2gmar")
     safe_unlink(tmpfile)
     mar_signfile(inputfile, tmpfile, options.b2gmar_cmd, options.fake, passphrase)
 elif format_ == "dmg":
     if not options.dmg_keychain:
         parser.error("dmg_keychain required when format is dmg")
     if not options.mac_id:
         parser.error("mac_id required when format is dmg")
     safe_unlink(tmpfile)
     dmg_signpackage(
         inputfile,
         tmpfile,
         options.dmg_keychain,