Only create repository if obj is new when packages after is empty