Commit 1b94f25c authored by intrigeri's avatar intrigeri
Browse files

Additional Software: preserve file ownership when saving a copy of APT lists

refs: #17278
parent 354deac0
......@@ -256,7 +256,7 @@ def save_old_apt_lists(srcdir=APT_LISTS_DIR, destdir=OLD_APT_LISTS_DIR):
logging.warning("Warning: a copy of the APT lists already exists, "
"which should never happen. Removing it.")
shutil.copytree(srcdir, destdir, symlinks=True)['cp', '--archive', srcdir, destdir], check=True)
# Note: we can't do nicer delete + move operations because the directory
Markdown is supported
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