From d9df504ddd648171eeff73d63afe196e153459a2 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 1 Feb 2009 20:59:10 +0100 Subject: 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 Signed-off-by: Dan McGee --- cron-jobs/check_archlinux/check_packages.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cron-jobs/check_archlinux/check_packages.py') 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 -- cgit v1.2.3-54-g00ecf