Verified Commit 92be2e45 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Remove all previous references to a file in the repository, regardless of its path

parent e787b77a
......@@ -243,8 +243,8 @@ class Repository():
for sumed_file in files_to_install:
# Remove old entry from database
try:
previous_entry = RepositoryFile.objects.get(path=join(
pool_dir, str(sumed_file)))
previous_entry = RepositoryFile.objects.get(path__endswith=join(
'/', str(sumed_file)))
except RepositoryFile.DoesNotExist:
pass
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment