errno not error

This commit is contained in:
Jay Greguske 2016-04-04 15:26:30 -04:00 committed by Mike McLean
parent bed61eec23
commit 1c0c991f02

View file

@ -12352,7 +12352,7 @@ class HostExports(object):
try:
os.link(rpmpath, os.path.join(archdir, bnp[0], bnp))
except OSError, ose:
if ose.error == 18:
if ose.errno == 18:
shutil.copy2(
rpmpath, os.path.join(archdir, bnp[0], bnp))
else: