From 5e2a3f16cacc2f949a076a01e2dae794da4e39f1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Nov 2022 13:04:52 +0300 Subject: [PATCH] =?UTF-8?q?=09=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE:=20=20=20=20=20=20pym/update/update.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index 0bad4b0..ea7707c 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -599,7 +599,7 @@ class Update(MethodsInterface): else: for root, dirs, files in os.walk(rpath): for f in files: - os.replace(os.path.join(rpath, d), os.path.join(rpath_old, f)) + os.replace(os.path.join(rpath, f), os.path.join(rpath_old, f)) for d in dirs: shutil.move(os.path.join(rpath, d), os.path.join(rpath_old, d)) clearDirectory(rpath) @@ -607,7 +607,7 @@ class Update(MethodsInterface): if p.failed(): for root, dirs, files in os.walk(rpath_old): for f in files: - os.replace(os.path.join(rpath_old, d), os.path.join(rpath, f)) + os.replace(os.path.join(rpath_old, f), os.path.join(rpath, f)) for d in dirs: shutil.move(os.path.join(rpath_old, d), os.path.join(rpath, d)) raise UpdateError(