anchor.diff:        _reducedNames.contains(reducePackageName(name));
   
     /// Whether to accept the upload attempt of a given package [name].
  -  Future<bool> accept(String name) async =>
  -      _hasPackage(name) || !_hasConflict(name);
  +  ///
  +  /// Either the package [name] should exists, or it should be different enough
  +  /// from already existing package names. An example for the rejection:
  +  /// `long_name` will be rejected, if package `longname` or `lon_gname` exists.
  +  Future<bool> accept(String name) async {
  +    // fast track:
  +    if (_hasPackage(name)) return true;
  +    // Trigger a new scan (if updater is active) to get the packages that may
  +    // have been uploaded recently.
  +    await _updater?._scan();
  +    // normal checks:
  +    return _hasPackage(name) || !_hasConflict(name);
  +  }
   
     int get _length => _names.length;
   
  
positive.code: import 'models.dart';
  
  final _logger = Logger('pub.name_tracker');
  const _pollingInterval = Duration(minutes: 1);
  
  /// Sets the active [NameTracker].
  void registerNameTracker(NameTracker value) =>
  
negative.code:   }
  
    Future _scan() async {
      final now = DateTime.now().toUtc();
      final query = _db.query<Package>()..order('created');
      if (_lastTs != null) {
        query.filter('created >', _lastTs);
  