From 2abe2f904b852a516c04c676342c2c78209afe15 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 8 Nov 2022 17:48:01 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index 2fc351e..1cb90b6 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -576,17 +576,17 @@ class Update(MethodsInterface): makeDirectory(rpath_old) for root, dirs, files in os.walk(rpath): for f in files: - os.replace(os.join(rpath, d), os.path.join(rpath_old, f)) + os.replace(os.path.join(rpath, d), os.path.join(rpath_old, f)) for d in dirs: - shutil.move(os.join(rpath, d), os.join(rpath_old, d)) + shutil.move(os.path.join(rpath, d), os.path.join(rpath_old, d)) p = process(emerge, "--sync", repname, stderr=STDOUT) if p.failed(): clearDirectory(rpath) for root, dirs, files in os.walk(rpath_old): for f in files: - os.replace(os.join(rpath_old, d), os.path.join(rpath, f)) + os.replace(os.path.join(rpath_old, d), os.path.join(rpath, f)) for d in dirs: - shutil.move(os.join(rpath_old, d), os.join(rpath, d)) + shutil.move(os.path.join(rpath_old, d), os.path.join(rpath, d)) removeDir(rpath_old) raise UpdateError( _("Failed to update the {rname} repository").format(