Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
92be2e45
Verified
Commit
92be2e45
authored
Dec 21, 2020
by
Baptiste Beauplat
Browse files
Remove all previous references to a file in the repository, regardless of its path
parent
e787b77a
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/repository/models.py
View file @
92be2e45
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment