From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QueyW-0005MT-LY for garchives@archives.gentoo.org; Sat, 20 Aug 2011 06:24:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B07BC21C046; Sat, 20 Aug 2011 06:23:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 66EBE21C099 for ; Sat, 20 Aug 2011 06:23:59 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0E3B1B4049 for ; Sat, 20 Aug 2011 06:23:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CE9C580040 for ; Sat, 20 Aug 2011 06:23:57 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <13a62d774130c0e485572da2f4e1ddc2bdc33937.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/cli.py X-VCS-Directories: pmstestsuite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 13a62d774130c0e485572da2f4e1ddc2bdc33937 Date: Sat, 20 Aug 2011 06:23:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: da47b37182777ebc164e584c142a5e52 commit: 13a62d774130c0e485572da2f4e1ddc2bdc33937 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sat Aug 20 06:03:29 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sat Aug 20 06:03:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D13a62d77 Add --create-repo-only option. --- pmstestsuite/cli.py | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py index 510d6d5..8262427 100644 --- a/pmstestsuite/cli.py +++ b/pmstestsuite/cli.py @@ -49,6 +49,9 @@ class PMSTestSuiteCLI(object): setattr(parser.values, 'pmopts', {}) parser.values.pmopts[p] =3D optval =20 + opt.add_option('-C', '--create-repo-only', dest=3D'create_repo_only', + help=3D'Create ebuild repository only', + action=3D'store_true', default=3DFalse) opt.add_option('-l', '--library', dest=3D'library_name', help=3D'Test library to use (default: standard)', default=3D'standard') @@ -110,12 +113,13 @@ class PMSTestSuiteCLI(object): if opts.repo_path and opts.repo_name: opt.error('--repository-path and --repository-name are mutually exclu= sive') =20 - for x in get_output_modules(): - if x.name =3D=3D opts.outputmod: - self.output =3D x(opts.outputfile) - break - else: - opt.error('Output module not available: %s' % opts.outputmod) + if not opts.create_repo_only: + for x in get_output_modules(): + if x.name =3D=3D opts.outputmod: + self.output =3D x(opts.outputfile) + break + else: + opt.error('Output module not available: %s' % opts.outputmod) =20 pmset =3D set(opts.pm) pms =3D [] @@ -159,6 +163,7 @@ class PMSTestSuiteCLI(object): =20 for pm in self.pms: pm.package_limit =3D opts.limit_pkgs + self.create_repo_only =3D opts.create_repo_only self.update_manifests =3D not opts.no_manifests self.verbose =3D opts.verbose =20 @@ -269,6 +274,9 @@ class PMSTestSuiteCLI(object): print('No PM was able to do the Manifests, failing.') return 1 =20 + if self.create_repo_only: + return 0 + self.pm_iter =3D iter(self.pms) self.results =3D {} self.prepare(first =3D True)