Summary: | create_tarball.rb fails with later version of ruby | ||
---|---|---|---|
Product: | [Developer tools] kdesdk-scripts | Reporter: | David Houlden <djhoulden> |
Component: | Miscellaneous | Assignee: | Michael Pyne <mpyne> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Force appdata["add{Docs,Po}"] to be an array to fix a (possible) bug caught by Ruby 1.9 |
Description
David Houlden
2011-03-05 12:17:24 UTC
Created attachment 58699 [details]
Force appdata["add{Docs,Po}"] to be an array to fix a (possible) bug caught by Ruby 1.9
Not sure how I got assigned this (perhaps I made myself default for kdesdk-scripts ;) but try this patch and let me know how it goes.
Thank you, I tried the patch and it works on my 1.9.1p431 version of ruby. I have asked on the kmymoney mailing list for someone to confirm it is ok with ruby 1.8.x. Thanks Micheal. I tried the patch upon Davids request here against ruby 1.8.7 on an openSUSE 11.4. Works fine. SVN commit 1227514 by mpyne: Ensure that appPo and appDocs are always arrays. The first time that appdata["app{Po,Docs}"] gets set, a simple string is assigned, but it is apparently supposed to be an array of possible docs or translations to add. This didn't cause errors with Ruby 1.8 as the way the array was iterated also happens to work on strings. Ruby 1.9 forces you to use each_line() on Strings (or each_byte, each_character, etc.) and therefore fails which is how the issue was caught. BUG:267696 M +2 -2 create_tarball.rb WebSVN link: http://websvn.kde.org/?view=rev&revision=1227514 |