diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-09-06 21:36:42 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 22:19:58 +0200 |
commit | 7eccf95bb5d53cb1b4f8c1d363cd5645ca4e567e (patch) | |
tree | c71943bd009ba4f703011e4f808e1a597af7f447 /cron-jobs/check_archlinux/alpm.so | |
parent | b36b754497df69778273f6a6e7b0d91679646565 (diff) | |
download | dbscripts-7eccf95bb5d53cb1b4f8c1d363cd5645ca4e567e.tar.gz dbscripts-7eccf95bb5d53cb1b4f8c1d363cd5645ca4e567e.tar.xz |
improve the way parse_pkgbuilds.sh is called
1) check the return value. before a failed call to parse_pkgbuilds.sh was
completely silent.. not good :)
2) call realpath on check_packages.py before determining the directory name,
to figure out where parse_pkgbuilds.sh is. This allows to symlink
check_packages.py and use the symlink without moving parse_pkgbuilds.sh .
for example : /foo/bar/ contains check_packages.py and parse_pkgbuilds.sh
ln -s /foo/bar/check_packages.py /bin/check_package
dirname(/bin/check_package) returns /bin/ so not good
dirname(realpath(/bin/check_package)) returns /foo/bar/ so good
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/check_archlinux/alpm.so')
0 files changed, 0 insertions, 0 deletions