On 03/09/2018 04:21 AM, Carlos O'Donell wrote:
DJ suggested using lua to generate the tarball as-needed and never
check it in. This is an interesting solution to the problem of not
being allowed to have a directory structure in the SourceN: entries,
which would retain dist-git history for the files but let you organize
as required with directories e.g. conf/ for configuration files,
install/ for install-time program sources, etc.
This assumes that the directory for the SourceN: files is writable. I
don't think this is necessarily true. I doubt you can generate source
file contents dynamically this way. In any case, you'll need separate
hacks for local builds/prep, mock and COPR. I tried that and I did get
quite far, but it's really hackish (including finding relevant
directories by looking at /proc/self).
Thanks,
Florian