From 6f061de840ca74d2cfe3d2814b0f52a5a2667888 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 9 Jul 2018 15:56:52 +0200 Subject: pythonFunktionen: mehr Quellen anzapfen --- pythonFunktionen | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pythonFunktionen b/pythonFunktionen index 5bb696e9c..8cbc3fcd5 100755 --- a/pythonFunktionen +++ b/pythonFunktionen @@ -71,13 +71,23 @@ versteheRequirements() { printf '}\n' done )" - tar -Oxzf "${archiv}" "${_pkgname}-${pkgver}/requirements.txt" | \ + { + tar -Oxzf "${archiv}" "${_pkgname}-${pkgver}/requirements.txt" + tar -tzf "${archiv}" | \ + grep '^.*/.*/requirements.txt' | \ + xargs -r tar -Oxzf "${archiv}" | \ + sed ' + /^[a-zA-Z]/! d + s/==/=/ + ' + } | \ sed ' /^#/d s,^https\?:.*/mysql-connector-python-[^/]*$,mysql-connector, s/^/_depends:/ ' } | \ + tr '[:upper:]' '[:lower:]' | \ sort -u )" -- cgit v1.2.3-70-g09d2