What functions do you suggest? remove_repository(type,url,dist,comp)? this could also be used to remove a single component. There is some logic in apt.sources that would handle this.
What functions do you suggest? remove_ repository( type,url, dist,comp) ? this could also be used to remove a single component. There is some logic in apt.sources that would handle this.