File that already exists is the destination file, not the source file. Print the correct error message about symlinks.

This commit is contained in:
Gökçen Eraslan
2009-09-25 11:02:44 +00:00
parent f67cbe8f06
commit 1bcf4cb2df
+1 -1
View File
@@ -233,7 +233,7 @@ def dosym(sourceFile, destinationFile):
try:
os.symlink(sourceFile, join_path(get.installDIR() ,destinationFile))
except OSError:
error(_('ActionsAPI [dosym]: File exists: %s') % (sourceFile))
error(_('ActionsAPI [dosym]: File already exists: %s') % (destinationFile))
def insinto(destinationDirectory, sourceFile, destinationFile = '', sym = True):
'''insert a sourceFile into destinationDirectory as a destinationFile with same uid/guid/permissions'''