summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:/
'