summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOliver Tappe2007-03-17 16:09:00 +0100
committerOliver Tappe2007-03-17 16:09:00 +0100
commit0ec579a58b5aa0c8481532803d1aabee27153e11 (patch)
tree3a135b305181c292ce494635f7f7ada4562ea574 /lib
parent* added missing (pre-remastering) kernel to packet list (diff)
downloadcore-0ec579a58b5aa0c8481532803d1aabee27153e11.tar.gz
core-0ec579a58b5aa0c8481532803d1aabee27153e11.tar.xz
core-0ec579a58b5aa0c8481532803d1aabee27153e11.zip
* linkFile() now ignores any existing link-target
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@780 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'lib')
-rw-r--r--lib/OpenSLX/Utils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OpenSLX/Utils.pm b/lib/OpenSLX/Utils.pm
index 0980a7c0..833aa591 100644
--- a/lib/OpenSLX/Utils.pm
+++ b/lib/OpenSLX/Utils.pm
@@ -60,7 +60,7 @@ sub linkFile
my $targetDir = dirname($linkName);
system("mkdir -p $targetDir") unless -d $targetDir;
- if (system("ln -s $linkTarget $linkName")) {
+ if (system("ln -sfn $linkTarget $linkName")) {
die _tr("unable to create link '%s' to '%s' (%s)",
$linkName, $linkTarget, $!);
}