Пример #1
0
 def sync(self):
     # prompt now so it doesn't later
     if self.cli_opts.sign and not self.cli_opts.gpg_passphrase:
         self.cli_opts.gpg_passphrase = get_input("GPG Key Passphrase: ", suppress=True)
     self.process_tags()
     self.gen_repo()
     self.push_to_public()
Пример #2
0
 def sync(self):
     # prompt now so it doesn't later
     if self.cli_opts.sign and not self.cli_opts.gpg_passphrase:
         self.cli_opts.gpg_passphrase = get_input("GPG Key Passphrase: ",
                                                  suppress=True)
     self.process_tags()
     self.gen_repo()
     self.push_to_public()
Пример #3
0
    def gen_repo(self):
        config = get_config()
        if self.cli_opts.sign:
            passphrase = self.cli_opts.gpg_passphrase
            if not passphrase:
                passphrase = get_input("GPG Key Passphrase: ", suppress=True)

            repo = IUSRepo(config, self.mf, sign=True, gpg_passphrase=passphrase)
        else:
            repo = IUSRepo(config, self.mf)

        if self.cli_opts.clean:
            repo.clean()

        repo.get_files()
        repo.build_metadata()
Пример #4
0
    def gen_repo(self):
        config = get_config()
        if self.cli_opts.sign:
            passphrase = self.cli_opts.gpg_passphrase
            if not passphrase:
                passphrase = get_input("GPG Key Passphrase: ", suppress=True)

            repo = IUSRepo(config,
                           self.mf,
                           sign=True,
                           gpg_passphrase=passphrase)
        else:
            repo = IUSRepo(config, self.mf)

        if self.cli_opts.clean:
            repo.clean()

        repo.get_files()
        repo.build_metadata()