summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git_taskrepo/taskrepo.py2
1 files changed, 1 insertions, 1 deletions
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: