1 |
commit: 519ea2292367f3fc2cab6ec357d613cb6bb00bba |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 8 09:19:09 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 8 09:19:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=519ea229 |
7 |
|
8 |
tests: last attempt (?) to get qdepends test running on Travis |
9 |
|
10 |
Perhaps old bash, or perhaps using dash (even though it shouldn't), well |
11 |
maybe the greedy matches aren't supported well, replace with old cut to |
12 |
split up strings. |
13 |
|
14 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
15 |
|
16 |
tests/qdepends/dotest | 6 ++++-- |
17 |
1 file changed, 4 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/tests/qdepends/dotest b/tests/qdepends/dotest |
20 |
index 11f7aad..6378fc7 100755 |
21 |
--- a/tests/qdepends/dotest |
22 |
+++ b/tests/qdepends/dotest |
23 |
@@ -26,9 +26,11 @@ test() { |
24 |
while IFS= read -r line ; do |
25 |
case "${line}" in |
26 |
*:*) |
27 |
- pkg=${line%%:*} |
28 |
+ # dinosaur style for Travis' /bin/bash (or /bin/sh?) |
29 |
+ pkg="$(echo "${line}" | cut -d':' -f1)" |
30 |
+ line="$(echo "${line}" | cut -d':' -f2-)" |
31 |
env LC_ALL=C \ |
32 |
- echo "${pkg}: $(echo ${line#*:} | xargs -n1 | sort | xargs)" |
33 |
+ echo "${pkg}: $(echo "${line}" | xargs -n1 | sort | xargs)" |
34 |
;; |
35 |
*) |
36 |
echo "${line}" |