summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-09-27 00:56:24 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-06 02:02:22 +0200
commit86ec8b5c9dcd5b83cee55e410d42784c830efbb6 (patch)
tree841c3e7382b024e743132ddbc9ba8a3b24609a01 /cron-jobs
parent42bbb3dd2ef276c5204651fafb152a888c449c15 (diff)
downloaddbscripts-86ec8b5c9dcd5b83cee55e410d42784c830efbb6.tar.gz
dbscripts-86ec8b5c9dcd5b83cee55e410d42784c830efbb6.tar.xz
check_packages : improve the "skip klibc dep" hack.
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. According to klibc developer, dashes are possible too. Also the length of this string is always 27 chars, so we can use that. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/check_archlinux/check_packages.py2
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..69b14c3 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)]