addbackup: use the vfs for the backup destination too

The backup file location was always computed using the opener, bypassing the
'location' setting. (And making the feature broken.)
This commit is contained in:
Pierre-Yves David 2014-11-14 14:54:55 +00:00
parent cec71977a9
commit 70e9add6df

View File

@ -208,7 +208,7 @@ class transaction(object):
vfs = self.opener
if vfs.exists(file):
filepath = vfs.join(file)
backuppath = self.opener.join(backupfile)
backuppath = vfs.join(backupfile)
util.copyfiles(filepath, backuppath, hardlink=hardlink)
else:
backupfile = ''