예제 #1
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()
예제 #2
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()