From: jeff.covey@pobox.com (jeff covey)
Subject: [sup-talk] gracefully handling missing sources
Date: Sun, 3 Jun 2007 21:11:34 -0400 [thread overview]
Message-ID: <20070604011134.GA12184@mona.jeffcovey.net> (raw)
In-Reply-To: <1180898390-sup-7346@south>
on Sun, Jun 03, 2007 at 12:20:47PM -0700%, William Morgan said:
> I have a patch for it. Going to do a little more testing and then I'll
> commit, probably later today.
thanks! i updated with svn and am trying it out. i've run into this
problem when sup tries to load a source which no longer exists:
./lib/sup/buffer.rb:45: warning: already initialized constant KEY_CANCEL
./lib/sup/mbox/loader.rb:20:in `initialize': No such file or directory - /home/jeff/mail/dogabulten at dogadernegi.org-2007-06 (Errno::ENOENT)
from ./lib/sup/mbox/loader.rb:20:in `open'
from ./lib/sup/mbox/loader.rb:20:in `initialize'
from ./lib/sup.rb:28:in `new'
from ./lib/sup.rb:28:in `yaml_properties'
from /usr/lib/ruby/1.8/yaml.rb:133:in `call'
from /usr/lib/ruby/1.8/yaml.rb:133:in `transfer'
from /usr/lib/ruby/1.8/yaml.rb:133:in `node_import'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
from ./lib/sup.rb:84:in `load_yaml_obj'
from ./lib/sup/index.rb:278:in `load_sources'
from ./lib/sup/index.rb:29:in `load'
from bin/sup:58
i have a cron job which deletes zero-length files under ~/mail so they don't
clutter. could sup handle no-longer-existent sources gracefully, either
ignoring them or (perhaps better) offering to remove them from sources.yaml?
thanks,
--
jeff covey
http://jeffcovey.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070603/2ca68556/attachment.bin
prev parent reply other threads:[~2007-06-04 1:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-27 19:50 [sup-talk] how to avoid adding labels based on source names jeff covey
2007-05-28 4:12 ` William Morgan
2007-06-03 18:14 ` jeff covey
2007-06-03 19:20 ` William Morgan
2007-06-04 1:11 ` jeff covey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070604011134.GA12184@mona.jeffcovey.net \
--to=jeff.covey@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox