summaryrefslogtreecommitdiff
path: root/testeAbhaengigkeiten
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-06 09:50:40 +0200
committerErich Eckner <git@eckner.net>2016-06-06 09:50:40 +0200
commit8ac52bb28ab1c0d7e14804bd2bcab37f8b639db4 (patch)
treee25820cdd4d6c07871c8e2dc2752cfd1d4133df4 /testeAbhaengigkeiten
parentd3931e16be44a76c3e63a30e3082e287bbc9af63 (diff)
downloadarchlinuxewe-8ac52bb28ab1c0d7e14804bd2bcab37f8b639db4.tar.xz
testeAbhaengigkeiten verbessert
Diffstat (limited to 'testeAbhaengigkeiten')
-rwxr-xr-xtesteAbhaengigkeiten12
1 files changed, 7 insertions, 5 deletions
diff --git a/testeAbhaengigkeiten b/testeAbhaengigkeiten
index e6401793e..d1715c000 100755
--- a/testeAbhaengigkeiten
+++ b/testeAbhaengigkeiten
@@ -63,7 +63,8 @@ echo "META.yml lesen ..."
meta="$(
tar -Oxzf "${_distdir}.tar.gz" "${_distdir}/META.yml" | \
tr '\r' ' ' | \
- grep -v "^ file:" | \
+ grep -v "^\s*file:" | \
+ grep -v "^version:" | \
sed '
:begin;
$!N;
@@ -75,6 +76,7 @@ meta="$(
sed "/^provides: /s@\(\s\S\+\):\s\+version: '\?\([0-9.]\+\)'\?@\L\1=\2@g" | \
sed "/^provides: /s@\s@ @g" | \
sed "/^provides: /s@\(\s[^= ]\+\):\+\(\s\|\$\)@\L\1=${pkgver}\2@g" | \
+ sed "s@\(\sperl:\s\+\)\([[:digit:]]\+\)\.\([[:digit:]]\{3\}\)\([[:digit:]]\+\(\s\|\$\)\)@\1\2.\3.\4@" | \
sed "s@\(\sperl:\s\+\)\([[:digit:]]\+\)[._]0*\([1-9][[:digit:]]*\)[._]0*\([1-9][[:digit:]]*\(\s\|\$\)\)@\1'\2.\3.\4'@"
)"
@@ -132,7 +134,7 @@ do
echo "${metaInfos["${sucheWonach}"]}" | \
tr ' ' '\n' | \
sort -rV | \
- sed 's@^\(.*\)\(\(>=\|=\|<\)[0-9.]*\)$@\1\2 \1@' | \
+ sed 's@^\([^<=>]*\)\(\(>=\|=\|<\)[0-9.]*\)$@\1\2 \1@' | \
sed 's|^\(\S*\)$|\1 \1|' | \
uniq -f1 | \
awk '{print $1}' | \
@@ -157,12 +159,12 @@ do
(
echo "${metaInfos["${wasAusgeben}"]}" | \
grep -v '^$' | \
- grep '^\s*perl-'
+ grep '^\s*perl'
echo "${pkgBuild["${wasAusgeben}"]}" | \
- grep -v '^\s*perl-'
+ grep -v '^\s*perl'
) | \
sort -rV | \
- sed 's@^\([^>]*\)\(\(>=\|=\|<\)[0-9.]*\)$@\1\2 \1@' | \
+ sed 's@^\([^<=>]*\)\(\(>=\|=\|<\)[0-9.]*\)$@\1\2 \1@' | \
sed 's|^\(\S*\)$|\1 \1|' | \
uniq -f1 | \
awk '{print $1}' | \