[arch-dev-public] Syncing single repo with abs

Allan McRae allan at archlinux.org
Mon Jul 7 09:27:20 EDT 2008


Travis Willard wrote:
> On Mon, Jul 7, 2008 at 8:33 AM, Allan McRae <allan at archlinux.org> wrote:
>   
>> Travis Willard wrote:
>>     
>>> On Mon, Jul 7, 2008 at 8:21 AM, Allan McRae <allan at archlinux.org> wrote:
>>>
>>>       
>>>> Travis Willard wrote:
>>>>
>>>>         
>>>>> On Sun, Jul 6, 2008 at 9:01 PM, Allan McRae <allan at archlinux.org> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> I was talking about JUST the command-line functionality.  That is the
>>>>>> bit
>>>>>> the is broken and apparently no-one uses.  Selection from abs.conf will
>>>>>> definitely stay.
>>>>>>
>>>>>>
>>>>>>             
>>>>> OK, in that case I'm not so opposed. ;)  If it looks like an easy fix,
>>>>> go for it, otherwise I don't think it'd hurt to lose.
>>>>>
>>>>> In the future, I was thinking some kind of configuration or syntax to
>>>>> allow people to sync a predefined list of packages, instead of whole
>>>>> repos.  For example, if someone wanted to rebuild only wine, they
>>>>> should be able to say "abs extra/wine" or have PKGS=(extra/wine) in
>>>>> abs.conf and not be required to sync everything.
>>>>>
>>>>> Dunno if that sounds like a good idea to you or not, but people have
>>>>> requested on the forums some method to sync single packages (usually
>>>>> as an argument to allow anon svn access)
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> Well, I had a quick attempt at fixing this.  I can get the command line
>>>> arguments working but at the price of a rsync transaction per arguement.
>>>>  In
>>>> a coincidence "abs extra/wine" now works but syncs it into /var/abs/wine
>>>> instead of /var/abs/extra/wine.  I should be able to fix that though.
>>>>
>>>>         
>>> Hm... dunno if that'd be an acceptable trade-off.  Might put too much
>>> load on gerolde that way - one rsync transaction per package in our
>>> repos? Yikes.
>>>
>>>       
>> Not one rsync per package, one rsyn per command line parameter.  So "abs
>> core extra" would rsync the core dir followed by rsyncing the extra dir.
>>     
>
> Hm... ok, that's not as bad as I thought it might be.  Then if
> somebody is syncing a small subset of packages, it'd be one rsync per
> package basically.
>
> Is there no way to roll up those rsync commands into a single command?
>  Are you using the 'include' filter with exclude-all?
>
>   

There probably is...  I haven't spent too much time on it yet.  It is 
definitely easy to do if you sync two repos or multiple packages from 
the same repo, but not sure about packages across repos.  I will look at 
it in more depth during the weekend.

Allan







More information about the arch-dev-public mailing list