diff options
author | Erich Eckner <git@eckner.net> | 2018-10-23 15:55:47 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-23 15:55:47 +0200 |
commit | ac4e7a1c16eaefeb2851d850b914bca352176c06 (patch) | |
tree | 7f1fae314c5d2bbaf456c7c6affc76d6f5b74d7a | |
parent | 3eaaaf4ca5d2b88a7eae1ff83fa2d1b3cefc0114 (diff) | |
download | archlinuxewe-ac4e7a1c16eaefeb2851d850b914bca352176c06.tar.xz |
pythonFunktionen: cleanup
-rwxr-xr-x | pythonFunktionen | 16 |
1 files 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:/ ' |