[solo.commands.pkg] EEXIST is fine when using makedirs()

This commit is contained in:
Fabio Erculiani
2014-09-30 20:41:18 +01:00
parent eed20a69c0
commit 2a35e8a9d0
+1 -1
View File
@@ -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