1 |
commit: 58beaa6ce65c84bff14a02566e52493d8d4cfec1 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 09:00:46 2011 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 09:00:46 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=58beaa6c |
7 |
|
8 |
prepall: don't operate on ${ED} when it doesn't exist |
9 |
|
10 |
prepall* funcs operate exclusively on ${ED}, which needs not to exist |
11 |
when nothing is installed, such as e.g. with virtuals. Refraining from |
12 |
operating when ${ED} does not exist avoids error messages from find that |
13 |
${ED} does not exist, bug #368839 |
14 |
|
15 |
--- |
16 |
bin/ebuild-helpers/prepall | 2 ++ |
17 |
1 files changed, 2 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/bin/ebuild-helpers/prepall b/bin/ebuild-helpers/prepall |
20 |
index bc3362e..f9164c1 100755 |
21 |
--- a/bin/ebuild-helpers/prepall |
22 |
+++ b/bin/ebuild-helpers/prepall |
23 |
@@ -4,6 +4,8 @@ |
24 |
|
25 |
source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh |
26 |
|
27 |
+[[ -d ${ED} ]] || exit 0 |
28 |
+ |
29 |
if hasq chflags $FEATURES ; then |
30 |
# Save all the file flags for restoration at the end of prepall. |
31 |
mtree -c -p "${ED}" -k flags > "${T}/bsdflags.mtree" |