summaryrefslogtreecommitdiffstats
path: root/cron-jobs/check_archlinux
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/check_archlinux')
-rwxr-xr-xcron-jobs/check_archlinux/check_packages.py6
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