Commit 1a525c89 authored by Michael Shigorin's avatar Michael Shigorin

lists: drop leading/trailing whitespace

This is a workaround for presumably alterator-pkg's misbehaviour given a pkglist with a line ending with a space character; my particular case grew from @E2K suffix resulting in "%name@e2k %name@e2kv4" which, in its turn, became "%name " in e2k-arch build. Installer complained about being unable to install in selected configuration with /tmp/install2.log "clarifying" the problem to be %name being unavailable (while %name package was there in both RPMS.main and metadata)... not obvious at all! So while downstream should be hardened either, let's do what we can do here.
parent 528cabd5
......@@ -43,7 +43,8 @@ grep-archdep:
sed -ri "s/\\<([^@ ]*)@X86\\>/\\1@i586 \\1@x86_64/g" __; \
sed -ri "s/\\<([^@ ]*)@IA32\\>/\\1@i586 i586-\\1@x86_64/g" __;\
sed -rni "s/\\<([^@ ]*)\\>|\\<([^@ ]*)@$a\\>/\\1\\2/pg" __; \
sed -ri "s/\\<([^@ ]*)@[^@ ]+\\> *//g" __'
sed -ri "s/\\<([^@ ]*)@[^@ ]+\\> *//g" __; \
sed -ri "s/^ +//;s/ +$$//" __'
# do beforehand as foreach gets expanded before recipe execution
$(TARGET):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment