On Tuesday 21 October 2008, Harald Sitter wrote: > I attached a modified script, maybe it works better. I am not exaclty > sure why it fails there.
OK, I googled and I think I found part of the problem, but I don't understand the whole thing. "line" turns out to be empty sometimes. So I changed line 54 from "end" to "end if line" and now it runs without error. But, it turns out that it never executes the loop: it seems that "line" never contains valid input. I tried changing the split character from \n to : or a space and still never had the loop execute (as determined by putting a 'print "Looping\n"' line as the first element of the loop). However, str is not empty; a print str reveals the entire ics file. > > Anyhow the extras package is only necessary for the backup task. gsub! > as well as everything else (besides the copy operation obviously ;-) is > part of the core ruby modules, so I don't see how that could be the > problem. > > ** Attachment added: "migrateics.rb" > http://launchpadlibrarian.net/18773605/migrateics.rb -- korganizer displays old appointments in UTC https://bugs.launchpad.net/bugs/286567 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs