davidfoerster / aptsources-cleanup

Detects and interactively deactivates duplicate Apt source entries and deletes sources list files without valid enabled source entries (as requested in https://askubuntu.com/a/762815/175814).
MIT License
667 stars 85 forks source link

Use of -y does not remove files #4

Closed alexbowers closed 6 years ago

alexbowers commented 6 years ago

The description of -y is "Apply all changes without question"

however if you have an empty .list file, it does not get removed, and it prompts for a response (yes, no, all, none, display).

This should either perform no action (no) for safety, or "yes" because it was prompted to, but it should not prompt for a response.

Thanks.

davidfoerster commented 6 years ago

Thanks for your report! This is intentional. The flag in question only means to refer to the disablement of deb lines. I'm not going to offer a program option that performs a difficult to foresee destructive operation without user confirmation.

It could use a better description though.

alexbowers commented 6 years ago

Can we get an option to skip any other options? This is making automating the building of a vagrant box for us tricky because it hangs on waiting for the user input.

Perhaps --skip-other-questions or similar?

alexbowers commented 6 years ago

So it takes no action, but skips the question and checks completely.

davidfoerster commented 6 years ago

I'd prefer not to, considering that this is meant to be an interactive application. You can however

to skip this step.

alexbowers commented 6 years ago

Ok, thanks for your help, I'll figure that bit out. Thank you.