anchor.diff:  
   
   
  +%cleaning removed packages, event generatied in scan_repository
   handle_cast({clean_packages, Notify, PackageName}, State) ->
       clean_packages(State, PackageName),
       spawn(fun() ->
  
positive.code:     {ok, State}.
  
  
  
  handle_info(scan_repository, State) ->
      spawn(fun() ->
          Self = self(),
  
negative.code:     end),
      {noreply, scan_repository(State)};
  
  %async event for pushing saved notifications
  handle_info(async_notify, State) ->
      spawn(fun() -> async_notify(State) end),
      async_notify(),
      {noreply, State};
  
  %async event for registering in caterpillar_event
  handle_info(register_service, #state{registered=Bool}=State) ->
      case Bool of 
          true -> {noreply, State};
          false -> {noreply, register_service(State)}
      end;
  
  %caterpillar_event down
  handle_info({'DOWN', _, _, _, _}, State) ->
      {noreply, register_service(State)};
  
  