Decode hardlink source path before linking

This commit is contained in:
Jonas Borgström 2011-07-01 21:54:39 +02:00
parent 3eb211b442
commit 650bd69da5
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Archive(object):
os.makedirs(os.path.dirname(path))
# Hard link?
if 'source' in item:
source = os.path.join(dest, item['source'])
source = os.path.join(dest, item['source'].decode('utf-8'))
if os.path.exists(path):
os.unlink(path)
os.link(source, path)