| [2010/01/25 01:53:21] @ Log started by gepetto | ||
| [2010/01/25 01:53:21] @ Quit: lak: | ||
| [2010/01/25 02:23:26] @ Quit: ppickfor1: Client Quit | ||
| [2010/01/25 02:23:41] @ ppickfor joined channel #puppet-dev | ||
| [2010/01/25 02:24:23] @ ppickfor is now known as ppickfor1 | ||
| [2010/01/25 02:24:54] @ ppickfor1 is now known as ppickfor | ||
| [2010/01/25 10:01:19] @ rocket joined channel #puppet-dev | ||
| [2010/01/25 10:02:44] <rocket> Hey Gentlemen is anyone here to answer a question regarding custom providor development? :) | ||
| [2010/01/25 11:45:47] @ lak joined channel #puppet-dev | ||
| [2010/01/25 12:21:30] @ jbarton_ joined channel #puppet-dev | ||
| [2010/01/25 12:23:52] @ Quit: jbarton_: Client Quit | ||
| [2010/01/25 13:25:19] @ Quit: ppickfor: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:25:23] @ Quit: ohadlevy: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:25:31] @ Quit: lak: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:25:51] @ Quit: ricky: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:25:58] @ Quit: fsweetser: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:04] @ Quit: duritong: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:07] @ Quit: hacim: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:25] @ Quit: nasrat: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:30] @ Quit: Volcane: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:32] @ Quit: Chiku: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:33] @ Quit: rocket: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:35] @ Quit: bje: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:36] @ Quit: ch: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:37] @ Quit: masterzen: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:26:39] @ Quit: jrojas: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 13:33:31] @ lak joined channel #puppet-dev | ||
| [2010/01/25 13:33:31] @ rocket joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ ppickfor joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ ohadlevy joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ Chiku joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ duritong joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ ricky joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ fsweetser joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ hacim joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ nasrat joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ Volcane joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ bje joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ masterzen joined channel #puppet-dev | ||
| [2010/01/25 13:33:32] @ ch joined channel #puppet-dev | ||
| [2010/01/25 13:33:56] @ jrojas joined channel #puppet-dev | ||
| [2010/01/25 13:51:14] @ Quit: ppickfor: "Leaving." | ||
| [2010/01/25 14:46:40] @ jes5 joined channel #puppet-dev | ||
| [2010/01/25 15:14:37] <rocket> Hey Gentlemen is anyone here to answer a question regarding custom providor development? :) | ||
| [2010/01/25 15:14:52] <rocket> I am trying to understand the flush code as I look at the source code .. | ||
| [2010/01/25 15:15:27] <rocket> trying to figure out how I can keep track of state as far as things I need to update via the flush method | ||
| [2010/01/25 15:15:33] @ ppickfor joined channel #puppet-dev | ||
| [2010/01/25 15:44:43] @ Quit: lak: | ||
| [2010/01/25 15:47:37] @ lak joined channel #puppet-dev | ||
| [2010/01/25 15:51:14] <lak> rocket: what do you need to know? | ||
| [2010/01/25 15:55:37] <rocket> lak: I am just trying to figure out if there is a hash or something that I need to be referring to for changes in the flush method | ||
| [2010/01/25 15:57:11] <rocket> lak: I am looking at alot of other flush methods and all they seem to do is clear the property_hash | ||
| [2010/01/25 15:57:39] <rocket> I guess I am failing to find where they actually do the work to update they system .. | ||
| [2010/01/25 15:58:23] <lak> rocket: usually flush will just call flush on the class, which does all the writing | ||
| [2010/01/25 15:58:48] <lak> flush unfortunately does double duty - remove temporary data in memory, and write any non-transient data to disk | ||
| [2010/01/25 15:59:40] <rocket> so my method needs to call an update method for example that reads the values out of the property_hash and then clear the property_hash afterwards? | ||
| [2010/01/25 16:02:13] @ Quit: lak: | ||
| [2010/01/25 16:32:17] @ lak joined channel #puppet-dev | ||
| [2010/01/25 16:33:41] <lak> rocket: essentially - i think that should work | ||
| [2010/01/25 16:36:37] <rocket> ok .. or should I be doing this a different way? | ||
| [2010/01/25 16:37:08] @ Quit: ppickfor: "Page closed" | ||
| [2010/01/25 16:49:54] <lak> rocket: it's more than i don't know what you're doing | ||
| [2010/01/25 16:50:05] <lak> generically, it sounds right, but i'm missing a lot of info | ||
| [2010/01/25 16:51:06] <rocket> lak: basically I am trying to create a new providor for the zypper repository manager in suse | ||
| [2010/01/25 16:51:43] <rocket> I am trying to use the prefetch and flush methods to save system calls and bundle all the commits into one instead of setting parameters one at a time | ||
| [2010/01/25 16:52:08] <lak> ok | ||
| [2010/01/25 16:52:26] <lak> so what i've generally done is have the provider class maintain a copy of all providers created with prefetch | ||
| [2010/01/25 16:52:43] <lak> then each provider is modified over the course of the transaction, and 'flush' just writes them back out to disk | ||
| [2010/01/25 16:52:54] <lak> you have to do commits one at a time, generally, for the ordering to work | ||
| [2010/01/25 16:53:18] <lak> e.g., if you have Pa, Fa, Pb, where Pa and Pb are two packages, and Fa is a file that depends on Pa | ||
| [2010/01/25 16:53:31] <lak> if you don't flush after writing Pa, then Fa won't work correctly | ||
| [2010/01/25 16:55:10] <rocket> is there an example providor I should be looking at with similar behavior to what I am after? | ||
| [2010/01/25 17:06:18] <lak> hmm | ||
| [2010/01/25 17:07:18] <lak> ParsedFile is probably too confusing to follow as an example | ||
| [2010/01/25 17:11:09] @ Quit: lak: | ||
| [2010/01/25 17:14:00] @ lak joined channel #puppet-dev | ||
| [2010/01/25 17:23:40] @ nigelk joined channel #puppet-dev | ||
| [2010/01/25 19:07:03] @ ricdanger joined channel #puppet-dev | ||
| [2010/01/25 19:24:15] @ Quit: hacim: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 19:24:17] @ Quit: duritong: calvino.freenode.net irc.freenode.net | ||
| [2010/01/25 19:24:20] @ duritong_ joined channel #puppet-dev | ||
| [2010/01/25 19:24:21] @ hacim_ joined channel #puppet-dev | ||
| [2010/01/25 19:33:51] @ Quit: ricdanger: Read error: 110 (Connection timed out) | ||
| [2010/01/25 20:01:57] @ Quit: jes5: "Leaving." | ||
| [2010/01/25 21:01:45] @ Quit: lak: | ||
| [2010/01/25 21:23:56] @ Quit: nigelk: | ||
| [2010/01/25 21:52:07] @ ppickfor joined channel #puppet-dev | ||
| [2010/01/25 23:45:42] @ nigelk joined channel #puppet-dev |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!