FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 02-01-2009, 06:59 PM
Xavier Chantry
 
Default 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>
---
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
--
1.6.1.2
 

Thread Tools




All times are GMT. The time now is 05:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org