summaryrefslogtreecommitdiff
path: root/testeAbhaengigkeiten
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-09 13:43:56 +0200
committerErich Eckner <git@eckner.net>2018-07-09 13:43:56 +0200
commit0dab4facbde189615428dd7d5b64447e7c93bbfc (patch)
treea01b008a2b00a1e019dee0d9882330fe5ae9ca34 /testeAbhaengigkeiten
parented6583f79deb8bbe04150231c5863b42f59ae89f (diff)
downloadarchlinuxewe-0dab4facbde189615428dd7d5b64447e7c93bbfc.tar.xz
testeAbhaengigkeiten: prepare for python
Diffstat (limited to 'testeAbhaengigkeiten')
-rwxr-xr-xtesteAbhaengigkeiten32
1 files changed, 23 insertions, 9 deletions
diff --git a/testeAbhaengigkeiten b/testeAbhaengigkeiten
index 015ed1619..1a294667a 100755
--- a/testeAbhaengigkeiten
+++ b/testeAbhaengigkeiten
@@ -81,14 +81,28 @@ if ${err}; then
exit 1
fi
sed '
- :begin;
- $!N;
- s@^\(\(provides\|makedepends\|depends\|optdepends\|conflicts\)=[^)]*\)\n\(.*\)$@\1 \3@;
- tbegin;
- P;
- D
- ' -i PKGBUILD
- sed '/^\(provides\|makedepends\|optdepends\|conflicts\)=/d' -i PKGBUILD
- sed "s|^depends=.*\$|${ersatz}|" -i PKGBUILD
+ :begin;
+ $!N;
+ s@^\(\('"$(
+ printf '%s\|' "${!metaRegexe[@]}" | \
+ sed 's/\\|$//'
+ )"'\)=[^)]*\)\n\(.*\)$@\1 \3@;
+ tbegin;
+ P;
+ D
+ ' -i PKGBUILD
+ sed '/^\('"$(
+ printf '%s\|' "${!metaRegexe[@]}" | \
+ sed '
+ s/\(^\|\\|\)_\?depends\($\|\\|\)/\1\2/
+ s/\(\\|\)\{2\}/\1/g
+ s/\\|$//
+ '
+ )"'\)=/d' -i PKGBUILD
+ sed 's|^'"$(
+ printf '%s\n' "${!metaRegexe[@]}" | \
+ grep -xm1 '_\?depends' | \
+ tr -d '\n'
+ )"'=.*$|'"${ersatz}"'|' -i PKGBUILD
"${me}" "$@"
fi