Hello Bastian, Gee, that was fast. Nice. The patch looks fine with me.
Would you please do one more thing? Go to www.bacula.org -> FSFE License, fill out two copies of the FLA and mail them in. Once you have them in the mail, send me an email, and I will integrate your code. I'm sure we will find reasons or other places to add similar similar statements as you mention Thanks for doing it on the SVN that is the best for me. I'll take care of back porting it to 2.2.6 ... :-) Best regards, Kern On Friday 14 December 2007 14:19, Bastian Friedrich wrote: > Hi, > > On Thursday 13 December 2007, Kern Sibbald wrote: > > On Thursday 13 December 2007 15:36, Bastian Friedrich wrote: > > > I'd like to access the name of the current file set in a "RunScript" > > > statement in my Job configuration. Substitutions such as "%n" (for Job > > > name) are available in such statements; a substitution for the file set > > > name is not available. > > [...] > > > Simply add a new argument to the subroutine, which is a callback > > subroutine that can be called if the main edit_job_codes() does not > > recognize a code. > > Thanks a lot for your guidance. I'm attaching a patch that implements your > idea. > > Seems to work well for "RunScript" and "Run Before Job" statements; I'm not > sure whether I miss some locations where similar statements could be > used... > > The attached patch is vs. the current SVN; if you prefer, I can submit a > 2.1.6 patch as well. > > Thx again, > Bastian ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
