diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-05-16 15:29:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-05-16 16:21:27 +0300 |
commit | 6166282edeb1a5c44d34d4824eab1f82b6e7b15a (patch) | |
tree | c66e7be13c4509219b1b5e9254342b27b77ac68e /solenv/bin/modules/installer/systemactions.pm | |
parent | c2aac3b42e7122569770377091be502939fc9a26 (diff) |
Handle symlinks separately
Change-Id: Ie94a16baaae9d942675d06dda9444b502e6a08dd
Diffstat (limited to 'solenv/bin/modules/installer/systemactions.pm')
-rw-r--r-- | solenv/bin/modules/installer/systemactions.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/systemactions.pm b/solenv/bin/modules/installer/systemactions.pm index 69aef84ebcd7..ec6313b7ae24 100644 --- a/solenv/bin/modules/installer/systemactions.pm +++ b/solenv/bin/modules/installer/systemactions.pm @@ -292,9 +292,14 @@ sub copy_one_file { my ($source, $dest) = @_; - my ($returnvalue, $infoline); + my ($returnvalue, $infoline, $copyreturn); - my $copyreturn = copy($source, $dest); + if ( -l $source ) { + $copyreturn = symlink(readlink("$source"), "$dest"); + } + else { + $copyreturn = copy($source, $dest); + } if ($copyreturn) { |