[Piuparts-devel] pull: feature/script-substitutions

Holger Levsen holger at layer-acht.org
Wed Feb 20 09:42:56 UTC 2013


Hi,

On Mittwoch, 20. Februar 2013, Andreas Beckmann wrote:
> On 2013-02-20 10:08, Holger Levsen wrote:
> > I'm not sure I like this, why substituting the code at build time and not
> > include or source it at runtime?
> 
> Well, *WHERE* should I source this from? 

/usr/share/piuparts/foo

> How could the script figure
> this out? Absolute paths don't work for running piuparts from git.

also if piuparts is installed from git, the path should be somehow 
determistic. 

> And if we find a solution, we can easily change the current substitution
> to do that instead :-)

the path (to the to be included file) could be substituted at build time...
 
> And I never really liked copying the get_config_value function into
> every script when I introduced this some time ago ... I was afraid some
> day I would need to change something in it ... that day has come :-)

sure :)


cheers,
	Holger



More information about the Piuparts-devel mailing list