Fix a bug with repositories that do not support archived packages (i.e.
flat repositories).