FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 09-26-2008, 06:10 PM
Xavier
 
Default check_packages : improve the "skip klibc dep" hack.

On Fri, Sep 26, 2008 at 7:28 PM, Xavier Chantry <shiningxc@gmail.com> wrote:
> It is not possible to check the klibc dep on the PKGBUILD level, so I made a
> hack to skip it.
> This hack broke on klibc-jfflyAahxqaliwAofrf_fdf5upI because of the
> underscore.
> But we can simply use the w regexp which matches any alpha-numeric char,
> including underscore. Also the length of this string is always 27 chars, so
> we can use that.
>
> Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
> ---
> cron-jobs/check_archlinux/check_packages.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/cron-jobs/check_archlinux/check_packages.py b/cron-jobs/check_archlinux/check_packages.py
> index 2d2efbe..cdc7551 100755
> --- a/cron-jobs/check_archlinux/check_packages.py
> +++ b/cron-jobs/check_archlinux/check_packages.py
> @@ -363,7 +363,7 @@ for name,pkg in repopkgs.iteritems():
>
> # ugly hack to strip the weird kblic- deps
> for name,pkg in packages.iteritems():
> - p = re.compile('klibc-[A-Za-z0-9]{20,}|klibc-*')
> + p = re.compile('klibc-w{27}|klibc-*')
> pkg.deps = [dep for dep in pkg.deps if not p.match(dep)]
> pkg.makedeps = [dep for dep in pkg.makedeps if not p.match(dep)]
>
> --
> 1.6.0.2
>
>

I asked klibc developer, he said it could be alphanumeric or dash or underscore.
So I guess my patch is not correct since it does not handle dash :P
 
Old 10-06-2008, 12:03 AM
"Aaron Griffin"
 
Default check_packages : improve the "skip klibc dep" hack.

Applied:
http://projects.archlinux.org/?p=dbscripts.git;a=commit;h=86ec8b5c9dcd5b83cee55e 410d42784c830efbb6
 

Thread Tools




All times are GMT. The time now is 12:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org