def METHOD_NAME(self, pid, fs, level = 0):
    files = []
    ret = True
    for f in fs:
        if not os.path.exists(os.path.join(self.tmp_input_dir, f)):
            ret = False
        else:
            files.append(os.path.join(self.tmp_input_dir, f))
    if not ret:
        return [False, 'Some files are missing']
    try:
        ret_assoc = Common().associateFiles(self.mp, pid, files, level)
    except exceptions.OSError, e:
       return [False, str(e)]
    if not self.config.package_detect_activate:
        # Run the detectNewPackages stuff to register our new package
        # FIXME: the next line force the new package to be detected
        del Common().packages[pid]
        for i in range(10):
            ret = Common().detectNewPackages()
            if ret: break
            time.sleep(1)
    errors = []
    if ret_assoc[1] & 1:
        errors.append('Some files failed to be erased')
    # COULD ADD SOME MORE FLAGS
    ret_assoc[1] = errors
    return ret_assoc