1 |
commit: c27b5750eeb793a9c5d7d98a6021e9c9056a3ec6 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 1 12:15:55 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 1 12:15:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=c27b5750 |
7 |
|
8 |
tests/atom_explode: deal with Python not finding portage, bug #661762 |
9 |
|
10 |
Check if the python atom check is going to work, if not, fall back to |
11 |
full pre-cooked files. If we just check for a portage tree in the |
12 |
filesystem, it may be that we end up without python support for portage, |
13 |
which would then obviously mismatch. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/661762 |
16 |
|
17 |
tests/atom_explode/dotest | 4 +++- |
18 |
1 file changed, 3 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/tests/atom_explode/dotest b/tests/atom_explode/dotest |
21 |
index e911ab5..3a45fc1 100755 |
22 |
--- a/tests/atom_explode/dotest |
23 |
+++ b/tests/atom_explode/dotest |
24 |
@@ -3,7 +3,9 @@ |
25 |
. ../init.sh || exit 1 |
26 |
|
27 |
PORTDIR=$(DEBUG=: q -Ch 2>&1 | grep ^PORTDIR | awk '{print $NF}') |
28 |
-if [[ -d "${PORTDIR}"/metadata/md5-cache ]] ; then |
29 |
+if [[ -d "${PORTDIR}"/metadata/md5-cache ]] && |
30 |
+ "$s"/atom-explode.py < /dev/null >& /dev/null ; |
31 |
+then |
32 |
pushd "${PORTDIR}"/metadata/md5-cache >/dev/null || exit $? |
33 |
|
34 |
if [[ $1 == -v ]] ; then |