Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82889 - strip-linguas shall not left pad a space to $LINGUAS
Summary: strip-linguas shall not left pad a space to $LINGUAS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 16:02 UTC by Sok Ann Yap
Modified: 2005-02-22 17:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch (eutils.patch,431 bytes, patch)
2005-02-21 16:03 UTC, Sok Ann Yap
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sok Ann Yap 2005-02-21 16:02:57 UTC
Currently, strip-linguas always left pad a space to $LINGUAS. This prevents me from easily transform the space-separated list into a comma-separated list (i.e. ${LINGUAS// /,}), since the extra space at the front will get converted into a comma. Of course, I can just strip out the first char, but I guess the better solution is to fix this behavior in strip-linguas.
Comment 1 Sok Ann Yap 2005-02-21 16:03:35 UTC
Created attachment 51823 [details, diff]
Proposed patch
Comment 2 SpanKY gentoo-dev 2005-02-22 15:16:01 UTC
this works too right ?
-        export LINGUAS="${newls}"
+        export LINGUAS=${newls:1}
Comment 3 Sok Ann Yap 2005-02-22 17:02:54 UTC
Yes, that works too.
(My shell scripting is not very good, to say the least :P)
Comment 4 SpanKY gentoo-dev 2005-02-22 17:11:07 UTC
np, it's more of an art form ... just takes time :)

fixed in cvs