diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-06 12:20:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-06 12:20:47 +0000 |
commit | e50139ec72610bf00570f257a52849304d338352 (patch) | |
tree | c6fcc4a521bc722c5d0abdc831184a1d1f6dc45d /solenv/bin/deliver.pl | |
parent | transform script providers into extensions (diff) | |
download | core-e50139ec72610bf00570f257a52849304d338352.tar.gz core-e50139ec72610bf00570f257a52849304d338352.zip |
return early if source doesn't exist on symlink
Diffstat (limited to 'solenv/bin/deliver.pl')
-rwxr-xr-x | solenv/bin/deliver.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/bin/deliver.pl b/solenv/bin/deliver.pl index ab91ae34c01f..08a7806b3cc7 100755 --- a/solenv/bin/deliver.pl +++ b/solenv/bin/deliver.pl @@ -368,13 +368,13 @@ sub do_symlink } } else { + return unless -e $fullfrom; print "REMOVE: $to\n" if $opt_verbose; unlink $to; if ( $opt_delete ) { push_on_ziplist($to) if $opt_zip; return; } - return unless -e $fullfrom; print "SYMLIB: $from -> $to\n" if $opt_verbose; if ( !symlink("$from", "$to") ) { print_error("can't symlink $from -> $to: $!",0); |