[arch-dev-public] abs tree checker

Travis Willard travis at archlinux.org
Sun Jun 1 17:44:35 EDT 2008


On Tue, May 27, 2008 at 2:40 PM, Travis Willard <travis at archlinux.org> wrote:
> On Tue, May 27, 2008 at 2:37 PM, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
>> On Mon, May 26, 2008 at 6:00 PM, Xavier <shiningxc at gmail.com> wrote:
>>> Hello,
>>>
>>> stonecrest wrote a very useful script in my opinion a while ago :
>>> http://www.archlinux.org/pipermail/arch/2007-November/016238.html
>>>
>>> However, it hasn't been updated since the svn move and the new abs.
>>> It had a feature to fetch the abs tree itself, using csup directly. But
>>> anyway it is not required, abs can be used manually instead, so I just
>>> removed that part.
>>> The second problem is the directory structure, which is now different for
>>> core/extra/etc, where the package dir are on the first level, compared to
>>> community which still has the old layout with an additional level of
>>> category. This breaks the following function :
>>> def repo_from_path(path):
>>>        return path.split("/")[-4]
>>> It should be -4 for community and -3 for the rest.
>>> Instead I just used 3, but it will only work on /var/abs/ tree (or any other
>>> structure with just 2 directory levels).
>>> Anyway, this was just two quick hacks to get the script working again and
>>> see what were its results now. And it is still far from perfect :)
>>>
>>> I think this script is something that packagers (of the official repos)
>>> should check regularly to ensure the quality of arch pkgbuilds and packages.
>>
>> I think I might add this in to this set of "repo maintenance" cron
>> jobs so that it will email the dev list once a day. It's definitely
>> worth it.
>>
>> I just checked it in in the dbscripts repo.
>> http://projects.archlinux.org/?p=dbscripts.git;a=commit;h=1c9a21bdf378ddd3572b3b8f405d99b3063521c9
>> (Thanks Scott)
>>
>> Travis, would you mind taking a look at this and patching it to work
>> over the /home/abs tree on gerolde?
>
> Sure - I probably won't get to it tonight though.  I've starred this
> in gmail, so hopefully I'll remember. ;)
>
> Feel free to poke me relentlessly about it if I don't produce anything
> before the end of the week.
>

Patch created and sent to your gmail - I wasn't sure if I should send
it to a list or to gmail. :P




More information about the arch-dev-public mailing list