diff --git a/libraries/entropy/server/interfaces/main.py b/libraries/entropy/server/interfaces/main.py index 7c83b4155..ac5ca1361 100644 --- a/libraries/entropy/server/interfaces/main.py +++ b/libraries/entropy/server/interfaces/main.py @@ -1938,7 +1938,10 @@ class Server(Singleton, TextInterface): repo = repo) downloadfile = os.path.basename(download_url) destination_path = os.path.join(upload_dir, downloadfile) - shutil.move(package_file, destination_path) + try: + os.rename(package_file, destination_path) + except OSError: + shutil.move(package_file, destination_path) dbconn.commitChanges() return idpackage, destination_path