aptrepo: ported to DC API.1