summaryrefslogtreecommitdiffstats
path: root/git_taskrepo
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2015-05-07 15:59:16 -0400
committerBill Peck <bpeck@redhat.com>2015-05-07 15:59:16 -0400
commitf44364d9554fc048af26d0bdd72f67fc136bfd37 (patch)
treebc11a6b85ead3bd581af8ee1492b49c132b47e2e /git_taskrepo
parent7182972f4f6d18fae8cc410496672e9eb3533577 (diff)
downloadtaskrepo-f44364d9554fc048af26d0bdd72f67fc136bfd37.tar.gz
taskrepo-f44364d9554fc048af26d0bdd72f67fc136bfd37.tar.xz
taskrepo-f44364d9554fc048af26d0bdd72f67fc136bfd37.zip
fix _delete_taskrepo, referenced taskname from other scope.
Diffstat (limited to 'git_taskrepo')
-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: