errno not error
This commit is contained in:
parent
bed61eec23
commit
1c0c991f02
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue