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.
This commit is contained in:
parent
528cabd5c0
commit
1a525c89fb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user