summaryrefslogtreecommitdiff
path: root/pythonFunktionen
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-23 15:55:47 +0200
committerErich Eckner <git@eckner.net>2018-10-23 15:55:47 +0200
commitac4e7a1c16eaefeb2851d850b914bca352176c06 (patch)
tree7f1fae314c5d2bbaf456c7c6affc76d6f5b74d7a /pythonFunktionen
parent3eaaaf4ca5d2b88a7eae1ff83fa2d1b3cefc0114 (diff)
downloadarchlinuxewe.git.save-ac4e7a1c16eaefeb2851d850b914bca352176c06.tar.xz
pythonFunktionen: cleanup
Diffstat (limited to 'pythonFunktionen')
-rwxr-xr-xpythonFunktionen16
1 files changed, 8 insertions, 8 deletions
diff --git a/pythonFunktionen b/pythonFunktionen
index 4c3f5cd2..f4b9f224 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:/
'