Skip to content

Commit

Permalink
fix: clean ftp copy of repository when cleaning repository (ietf-tool…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Dec 20, 2024
1 parent fdd3783 commit d25af5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ietf/doc/expire.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def splitext(fn):

def move_file_to(subdir):
# Similar to move_draft_files_to_archive
# ghostlinkd would keep this in the combined all archive since it would
# be sourced from a different place. But when ghostlinkd is removed, nothing
# new is needed here - the file will already exist in the combined archive
shutil.move(path,
os.path.join(settings.INTERNET_DRAFT_ARCHIVE_DIR, subdir, basename))
mark = Path(settings.FTP_DIR) / "internet-drafts" / basename
if mark.exists():
mark.unlink()

try:
doc = Document.objects.get(name=filename, rev=revision)
Expand Down

0 comments on commit d25af5e

Please sign in to comment.