diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-02-01 20:59:10 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-02-01 21:44:38 +0100 |
commit | d9df504ddd648171eeff73d63afe196e153459a2 (patch) | |
tree | 7aa746ef6825e81cda1c9b3280f9f00b55924aff | |
parent | 6e0ea2deb4f28baeebef2c549c30daee60f8e8d7 (diff) | |
download | dbscripts-d9df504ddd648171eeff73d63afe196e153459a2.tar.gz dbscripts-d9df504ddd648171eeff73d63afe196e153459a2.tar.xz |
check_packages: fix stupid assumption on script location.
The parse_pkgbuilds.sh script was assumed to be in the current working
directory, which is quite stupid since check_packages.py can be called from
anywhere. Now it only assumes that check_packages.py and parse_pkgbuilds.sh
are in the same directory.
This should fix the empty integrity checks on arch-dev :)
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | cron-jobs/check_archlinux/check_packages.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cron-jobs/check_archlinux/check_packages.py b/cron-jobs/check_archlinux/check_packages.py index f0fd4a5..0392368 100755 --- a/cron-jobs/check_archlinux/check_packages.py +++ b/cron-jobs/check_archlinux/check_packages.py @@ -50,12 +50,10 @@ class Depend: self.mod = mod def parse_pkgbuilds(repos,arch): - oldcwd = os.getcwd() - os.chdir(absroot) for repo in repos: - data = commands.getoutput(oldcwd + '/parse_pkgbuilds.sh ' + arch + ' ' + repo) + data = commands.getoutput(os.path.dirname(sys.argv[0]) + '/parse_pkgbuilds.sh ' + + arch + ' ' + absroot + '/' + repo) parse_data(repo,data) - os.chdir(oldcwd) def parse_data(repo,data): attrname = None |