From ac4e7a1c16eaefeb2851d850b914bca352176c06 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 23 Oct 2018 15:55:47 +0200 Subject: pythonFunktionen: cleanup --- pythonFunktionen | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pythonFunktionen b/pythonFunktionen index 4c3f5cd21..f4b9f2241 100755 --- a/pythonFunktionen +++ b/pythonFunktionen @@ -62,7 +62,7 @@ versteheRequirements() { "${metaRegexe["${wasAusgeben}"]}" printf ' s/\]$//\n' printf ' s/\\s*%%[^"'"'"']*["'"'"']//g\n' - printf ' s/,/ /g\n' + printf ' s/,/\\n/g\n' printf ' s/["'"'"']//g\n' printf ' s/^/%s:/\n' \ "${wasAusgeben}" @@ -75,15 +75,15 @@ versteheRequirements() { tar -Oxzf "${archiv}" "${_pkgname}-${pkgver}/requirements.txt" tar -tzf "${archiv}" | \ grep '^.*/.*/requirements.txt' | \ - xargs -r tar -Oxzf "${archiv}" | \ - sed ' - /^[a-zA-Z]/! d - s/==/=/ - ' + xargs -r tar -Oxzf "${archiv}" } | \ sed ' - /^#/d - /^numpydoc\([<>=].*\)\?/d + /^[a-zA-Z]/! d + s/==/=/ + s/\s*\([<=>]\+\)\s*/\1/ + s/\s*[#;].*$// + /^$/d + /^numpydoc\s*\([<>=].*\)\?$/d s,^https\?:.*/mysql-connector-python-[^/]*$,mysql-connector, s/^/_depends:/ ' -- cgit v1.2.3-70-g09d2