Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l10n.eclass: update l10n_find_plocales_changes() #1308

Closed
wants to merge 1 commit into from

Conversation

rindeal
Copy link
Contributor

@rindeal rindeal commented Apr 19, 2016

This update does

  • allow to span PLOCALES over multiple lines
  • make code more readable

Gentoo-Bug: 513242

@yngwin @jlec

@gentoo-repo-qa-bot
Copy link
Collaborator

😞 The QA check for this pull request has found the following issues:

Issues persisted from underlying repository state:
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-admin/rsyslog
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-crypt/zuluCrypt
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-editors/gvim
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-editors/vim
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-editors/vim-qt
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-emulation/libvirt
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-i18n/anthy
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-misc/tablix
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#app-text/atril
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-lang/icc
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-lang/idb
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-libs/libressl
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-libs/log4cxx
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-python/pyplusplus
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-python/sympy
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-python/zsi
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-ruby/barby
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#dev-util/nvidia-cuda-toolkit
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#games-fps/doomsday
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-apps/cantor
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-apps/kdeutils-meta
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-base/kdeplasma-addons
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-base/korundum
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-base/perlkde
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-base/smokekde
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#kde-misc/kdeconnect
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#mail-client/alpine
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#mail-client/nail
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-gfx/hugin
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/devil
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/libextractor
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/libopenshot
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/libopenshot-audio
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/mlt
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-libs/openimageio
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-plugins/vdr-pvr350
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-plugins/vdr-xineliboutput
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-sound/amarok
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-sound/murmur
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-video/handbrake
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-video/libav
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-video/openshot
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-video/vdr
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#media-video/vlc
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-analyzer/nsca
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-analyzer/scapy
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-dns/avahi
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-im/qutim
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-mail/mairix
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-nntp/tin
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#net-wireless/hostapd
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sci-astronomy/psfex
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sci-biology/hmmer
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sci-chemistry/votca-csg
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sci-mathematics/cgal
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sci-mathematics/octave
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sys-cluster/cinder
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sys-cluster/pacemaker
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#sys-firmware/ipxe
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#www-client/dwb
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#www-client/vimb
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#x11-misc/bumblebee
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#x11-misc/spnavcfg
https://qa-reports.gentoo.org/output/gentoo-ci/22ec4fc/output.html#x11-plugins/purple-plugin_pack

@monsieurp monsieurp added bugfix assigned PR successfully assigned to the package maintainer(s). labels Apr 19, 2016
einfo "Looking in '${dir}' for new locales ..."
pushd "${dir}" >/dev/null || die "Cannot access ${dir}"
local current=
for l in ${pre}*${post} ; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l should be local as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @jlec , didn't know bash doesn't limit scope of loop vars.

This update does
- allow to span PLOCALES over multiple lines
- make code more readable

Gentoo-Bug: 513242
@gentoo-repo-qa-bot
Copy link
Collaborator

😞 The QA check for this pull request has found the following issues:

Issues persisted from underlying repository state:
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-admin/rsyslog
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-crypt/zuluCrypt
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-editors/gvim
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-editors/vim
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-editors/vim-qt
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-emulation/libvirt
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-i18n/anthy
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-misc/tablix
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#app-text/atril
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-lang/icc
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-lang/idb
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-libs/libressl
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-libs/log4cxx
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-python/sympy
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-python/zsi
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-ruby/barby
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#dev-util/nvidia-cuda-toolkit
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#games-fps/doomsday
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-apps/cantor
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-apps/kdeutils-meta
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-base/kdeplasma-addons
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-base/korundum
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-base/perlkde
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-base/smokekde
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#kde-misc/kdeconnect
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#mail-client/alpine
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#mail-client/nail
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-gfx/hugin
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/devil
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/libextractor
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/libopenshot
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/libopenshot-audio
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/mlt
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-libs/openimageio
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-plugins/vdr-pvr350
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-plugins/vdr-xineliboutput
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-sound/amarok
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-sound/murmur
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-video/handbrake
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-video/libav
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-video/openshot
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-video/vdr
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#media-video/vlc
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-analyzer/nsca
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-analyzer/scapy
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-dns/avahi
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-im/qutim
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-mail/mairix
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-nntp/tin
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#net-wireless/hostapd
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sci-astronomy/psfex
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sci-biology/hmmer
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sci-chemistry/votca-csg
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sci-mathematics/cgal
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sci-mathematics/octave
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sys-cluster/cinder
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sys-cluster/pacemaker
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#sys-firmware/ipxe
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#www-client/dwb
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#www-client/vimb
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#x11-misc/bumblebee
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#x11-misc/spnavcfg
https://qa-reports.gentoo.org/output/gentoo-ci/f32251c/output.html#x11-plugins/purple-plugin_pack

@rindeal
Copy link
Contributor Author

rindeal commented Apr 29, 2016

What's holding this back?

@monsieurp
Copy link
Member

@rindeal: Hi. Eclass changes must be discussed on the gentoo-dev mailing first. Not all Gentoo devs use and/or like Github. Thank you.

@rindeal
Copy link
Contributor Author

rindeal commented Apr 30, 2016 via email

@rindeal
Copy link
Contributor Author

rindeal commented May 9, 2016

becf075

@rindeal
Copy link
Contributor Author

rindeal commented May 17, 2016

I guess this can be closed now.

For anyone interested, I've completely reworked the eclass and added many cool features, while keeping full backwards compatibility. It can be seen in action in my overlay - https://github.com/rindeal/gentoo-overlay/blob/master/eclass/l10n.eclass

@rindeal rindeal closed this May 17, 2016
@rindeal rindeal deleted the eclass/l10n branch September 4, 2016 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s).
Projects
None yet
4 participants