From f44364d9554fc048af26d0bdd72f67fc136bfd37 Mon Sep 17 00:00:00 2001 From: Bill Peck Date: Thu, 7 May 2015 15:59:16 -0400 Subject: fix _delete_taskrepo, referenced taskname from other scope. --- git_taskrepo/taskrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_taskrepo/taskrepo.py') diff --git a/git_taskrepo/taskrepo.py b/git_taskrepo/taskrepo.py index 026c1c4..130d297 100644 --- a/git_taskrepo/taskrepo.py +++ b/git_taskrepo/taskrepo.py @@ -62,10 +62,10 @@ def _update_taskrepo(taskrepo, taskname, testinfo): cur.execute("INSERT INTO %s VALUES (?,?)" % key, (taskid, value)) def update_taskrepo(repo, taskrepo, taskpath): + taskname = taskpath.split("%s/" % repo.working_tree_dir)[1] if os.path.isfile(os.path.join(taskpath, "Makefile")): os.system("make -ki -C %s testinfo.desc >/dev/null 2>&1" % taskpath) if os.path.isfile(os.path.join(taskpath, "testinfo.desc")): - taskname = taskpath.split("%s/" % repo.working_tree_dir)[1] try: testinfo = parse_testinfo(os.path.join(taskpath, "testinfo.desc")) except ParserError: -- cgit