anchor.diff:              erlang:halt(2)
       end.
   
  -permafy(TargetNode, Vsn) ->
  +permafy(TargetNode, RelName, Vsn) ->
       ok = rpc:call(TargetNode, release_handler, make_permanent, [Vsn], ?TIMEOUT),
  +    file:copy(filename:join([\"bin\", RelName++\"-\"++Vsn]),
  +              filename:join([\"bin\", RelName])),
       ?INFO(\"Made release permanent: ~p~n\", [Vsn]),
       ok.
   
  
positive.code:                           [ReleasePackage], ?TIMEOUT) of
                  {ok, Vsn} ->
                      ?INFO(\"Unpacked successfully: ~p~n\", [Vsn]),
                      install_and_permafy(TargetNode, Vsn);
                  {error, UnpackReason} ->
                      print_existing_versions(TargetNode),
                      ?INFO(\"Unpack failed: ~p~n\",[UnpackReason]),
  
negative.code:         old ->
              %% no need to unpack, has been installed previously
              ?INFO(\"Release ~s is marked old, switching to it.~n\",[Version]),
              install_and_permafy(TargetNode, RelName, Version);
          unpacked ->
              ?INFO(\"Release ~s is already unpacked, now installing.~n\",[Version]),
              install_and_permafy(TargetNode, RelName, Version);
          current -> %% installed and in-use, just needs to be permanent
              ?INFO(\"Release ~s is already installed and current. Making permanent.~n\",[Version]),
              permafy(TargetNode, RelName, Version);
          permanent ->
              ?INFO(\"Release ~s is already installed, and set permanent.~n\",[Version])
      end;
  