From d5490ca81fec08bad27414979305cc9a50c56edd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 25 Aug 2010 18:49:33 -0700 Subject: [PATCH] Add ebuild(1) support for FEATURES=digest. --- bin/ebuild | 7 ++++++- man/make.conf.5 | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/ebuild b/bin/ebuild index 9ce058b5c..a419d264b 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -263,6 +263,11 @@ def stale_env_warning(): from portage.exception import PermissionDenied, \ PortagePackageException, UnsupportedAPIException + +if 'digest' in tmpsettings.features and \ + not set(["digest", "manifest"]).intersection(pargs): + pargs = ['digest'] + pargs + checked_for_stale_env = False for arg in pargs: diff --git a/man/make.conf.5 b/man/make.conf.5 index c1c3c78a1..909dfad34 100644 --- a/man/make.conf.5 +++ b/man/make.conf.5 @@ -1,4 +1,4 @@ -.TH "MAKE.CONF" "5" "Aug 2008" "Portage 2.2" "Portage" +.TH "MAKE.CONF" "5" "Aug 2010" "Portage 2.2" "Portage" .SH "NAME" make.conf \- custom settings for Portage .SH "SYNOPSIS" @@ -239,7 +239,7 @@ logs will have a '.gz' extension when this feature is enabled. .TP .B digest Autogenerate digests for packages when running the -\fBemerge\fR(1) or \fBrepoman\fR(1) commands. If +\fBemerge\fR(1), \fBebuild\fR(1), or \fBrepoman\fR(1) commands. If the \fIassume\-digests\fR feature is also enabled then existing SRC_URI digests will be reused whenever they are available. .TP -- 2.26.2