fetch-pack: move common check and marking together