Ejemplo n.º 1
0
 def filter(self, pkgset, trans, mediainfo, mediaset, archset):
     cmd = self._get_command()
     cmd.extend(pkg.path for pkg in pkgset.packages())
     cmd.append(pkgset.source().path)
     prompt = self.config.resign_command_prompt
     passphrase = self._get_passphrase()
     logger.debug("running with passphrase: %s", cmd)
     run_passphrase_command(cmd, passphrase, prompt)
Ejemplo n.º 2
0
 def _get_command(self):
     cmd = self.config.get_resign_command()
     cmd.extend(("--define", "_signature %s" %
         (self.config.resign_signature)))
     cmd.extend(("--define", "_gpg_name %s" %
         (self.config.resign_gpg_name)))
     gpgpath = os.path.expanduser(self.config.resign_gpg_path)
     cmd.extend(("--define", "_gpg_path %s" % (gpgpath)))
     return cmd