File that already exists is the destination file, not the source file. Print the correct error message about symlinks.
This commit is contained in:
@@ -233,7 +233,7 @@ def dosym(sourceFile, destinationFile):
|
|||||||
try:
|
try:
|
||||||
os.symlink(sourceFile, join_path(get.installDIR() ,destinationFile))
|
os.symlink(sourceFile, join_path(get.installDIR() ,destinationFile))
|
||||||
except OSError:
|
except OSError:
|
||||||
error(_('ActionsAPI [dosym]: File exists: %s') % (sourceFile))
|
error(_('ActionsAPI [dosym]: File already exists: %s') % (destinationFile))
|
||||||
|
|
||||||
def insinto(destinationDirectory, sourceFile, destinationFile = '', sym = True):
|
def insinto(destinationDirectory, sourceFile, destinationFile = '', sym = True):
|
||||||
'''insert a sourceFile into destinationDirectory as a destinationFile with same uid/guid/permissions'''
|
'''insert a sourceFile into destinationDirectory as a destinationFile with same uid/guid/permissions'''
|
||||||
|
|||||||
Reference in New Issue
Block a user