Fix the repodir search condition in analyze-repo-redundancy

This commit is contained in:
Alexander Lakhin 2014-02-06 15:41:18 +04:00
parent 82014f3096
commit 4c305cd105

View file

@ -42,7 +42,7 @@ def main(args):
for repo in options.repo[0]: for repo in options.repo[0]:
print repo print repo
rid = c.execute(""" rid = c.execute("""
SELECT id FROM repodirs WHERE name = ? OR name = ? SELECT id FROM repodirs WHERE name = ? OR path = ?
""", [repo, repo]).fetchall() """, [repo, repo]).fetchall()
if rid is None: if rid is None:
print 'Repository "%" not found.' % repo print 'Repository "%" not found.' % repo