From 2a35e8a9d043bfdc884219e1da333c5f36997a5d Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 30 Sep 2014 20:41:18 +0100 Subject: [PATCH] [solo.commands.pkg] EEXIST is fine when using makedirs() --- client/solo/commands/pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/solo/commands/pkg.py b/client/solo/commands/pkg.py index 130d6de4c..1178a9e6d 100644 --- a/client/solo/commands/pkg.py +++ b/client/solo/commands/pkg.py @@ -320,7 +320,7 @@ Execute advanced tasks on Entropy packages and the running system. try: os.makedirs(os.path.dirname(final_path)) except OSError as err: - if err.errno != errno.EISDIR: + if err.errno not in (errno.EISDIR, errno.EEXIST): raise shutil.move(package_path, final_path) package_path = final_path