summaryrefslogtreecommitdiff
path: root/commit-package
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-12-20 20:15:32 +0100
committerErich Eckner <git@eckner.net>2021-12-20 20:15:32 +0100
commite588b0db07ccb6624e06720c182ab3aafbf51b1e (patch)
treec5114388ce7b6c463a796ad7e94778f4e8d64c3a /commit-package
parent8caa9821d241564b5ce1273532b69450e2f4207f (diff)
downloadarchlinuxewe-e588b0db07ccb6624e06720c182ab3aafbf51b1e.tar.xz
commit-package: learn how to properly commit python-* for aur
Diffstat (limited to 'commit-package')
-rwxr-xr-xcommit-package6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit-package b/commit-package
index b8cbf0acb..31aedccda 100755
--- a/commit-package
+++ b/commit-package
@@ -93,6 +93,12 @@ if [ -d '.git' ] || [ -f '.git' ]; then
tar -Ox \
| sed "
/^_pinned_dependencies=(/,/)/d
+ /^\(\s*'"'"'python\(>=\|<\)[0-9.]\+'"'"'\s*\)$/{
+ N
+ s/^\(\s*'"'"'python\)\(>=\|<\)[0-9.]\+'"'"'\s*\n\s*'"'"'python\(>=\|<\)[0-9.]\+\('"'"'\s*)\?\s*\)$/\1\4/
+ t
+ s/^\(\s*'"'"'python\)\(>=\|<\)[0-9.]\+\('"'"'\s*)\?\s*\)$/\1\3/
+ }
"
' -u \
| sed '