diff options
-rwxr-xr-x | pythonFunktionen | 12 |
1 files changed, 11 insertions, 1 deletions
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 )" |