[tools] Allow --force to force rewrite of apt release files
Tom G. Christensen
tgc at statsbiblioteket.dk
Mon May 14 10:39:20 CEST 2007
Dag Wieers wrote:
> On Fri, 11 May 2007, Tom G. Christensen wrote:
>
>> Currently I see no way to make mrepo rewrite the apt release files which
>> causes them to go out of sync when the mrepo config file is updated.
>>
>> The attached patch just makes mrepo rewrite the release files if -f/--force is
>> used.
>
> Nice fetch. My original idea was that one could remove them to replce
> them, but this is obviously more what one would expect.
>
> However a mechanism to detect configuration changes could automate this.
>
> Patch has been applied. Thanks again !
>
Great, unfortunately it turns out that the patch is flawed.
When using --force the main release file is rewritten on generation of
each repository release file which means the information that genbasedir
writes into the main release file is lost.
To fix this we must ensure that the main release file is only written
once. I've attached a patch that attempts to get this right.
-tgc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrepo-rewrite-apt-release-once.patch
Type: text/x-patch
Size: 1223 bytes
Desc: not available
Url : http://lists.rpmforge.net/pipermail/tools/attachments/20070514/2c5648fd/mrepo-rewrite-apt-release-once.bin
More information about the tools
mailing list