From cc2c9e5a50abd63f42aca05f1ace0b2af07e982f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 17 Mar 2012 14:31:55 -0700 Subject: repoman: add --digest= option, bug #406875 --- bin/repoman | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 80fcde29f..c5db1865f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -188,6 +188,10 @@ def ParseArgs(argv, qahelp): parser.add_option('-M', '--commitmsgfile', dest='commitmsgfile', help='specify a path to a file that contains a commit message') + parser.add_option('--digest', + type='choice', choices=('y', 'n'), metavar='', + help='Automatically update Manifest digests for modified files') + parser.add_option('-p', '--pretend', dest='pretend', default=False, action='store_true', help='don\'t commit or fix anything; just show what would be done') @@ -656,6 +660,9 @@ if vcs is None: # TODO: shouldn't this just be switched on the repo, iso the VCS? check_changelog = options.echangelog not in ('y', 'force') and vcs in ('cvs', 'svn') +if 'digest' in repoman_settings.features and options.digest != 'n': + options.digest = 'y' + logging.debug("vcs: %s" % (vcs,)) logging.debug("repo config: %s" % (repo_config,)) logging.debug("options: %s" % (options,)) @@ -1236,8 +1243,7 @@ for x in effective_scanlist: generated_manifest = False if options.mode == "manifest" or \ - (options.mode != 'manifest-check' and \ - 'digest' in repoman_settings.features) or \ + (options.mode != 'manifest-check' and options.digest == 'y') or \ options.mode in ('commit', 'fix') and not options.pretend: auto_assumed = set() fetchlist_dict = portage.FetchlistDict(checkdir, -- cgit v1.2.3-1-g7c22