diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-08-24 23:25:42 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-08-27 21:26:07 +0100 |
commit | 37c7dc3decad423927b9c208d6ded23f04913991 (patch) | |
tree | e25639d08b976cdd9414dd3b44c673220986aba6 /profiles/common | |
parent | profiles/server/aws: drop net-misc/ena-driver, included upstream (diff) | |
download | portage-37c7dc3decad423927b9c208d6ded23f04913991.tar.xz |
profiles/common: remove distfiles conditionally
Diffstat (limited to 'profiles/common')
-rw-r--r-- | profiles/common/profile.bashrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index 11a872a2..461440c2 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -273,6 +273,10 @@ function __install_own_file () { } function __drop-distfiles () { + if [[ "${PORTAGE_REMOVE_DISTFILES}" != "Yes" ]] ; then + return 0 + fi + local _r if has fetch ${RESTRICT} ; then |