summaryrefslogtreecommitdiff
path: root/pythonFunktionen
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-09 15:56:52 +0200
committerErich Eckner <git@eckner.net>2018-07-09 15:56:52 +0200
commit6f061de840ca74d2cfe3d2814b0f52a5a2667888 (patch)
tree2fd7b882345c8953c82b1d64c214cba48d54ca5f /pythonFunktionen
parent1247b39b66e7adfc3216f3664dea6db8f93beda6 (diff)
downloadarchlinuxewe-6f061de840ca74d2cfe3d2814b0f52a5a2667888.tar.xz
pythonFunktionen: mehr Quellen anzapfen
Diffstat (limited to 'pythonFunktionen')
-rwxr-xr-xpythonFunktionen12
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
)"