Merge lp:~tsimonq2/ubuntu-archive-tools/skip-missing-remove-package into lp:ubuntu-archive-tools
Status: | Merged |
---|---|
Merged at revision: | 1178 |
Proposed branch: | lp:~tsimonq2/ubuntu-archive-tools/skip-missing-remove-package |
Merge into: | lp:ubuntu-archive-tools |
Diff against target: |
51 lines (+19/-9) 1 file modified
remove-package (+19/-9) |
To merge this branch: | bzr merge lp:~tsimonq2/ubuntu-archive-tools/skip-missing-remove-package |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Review via email: mp+351370@code.launchpad.net |
Commit message
Add a --skip-missing flag to remove-package.
Description of the change
12:02:31 PM < Lord-Kamina> My humble feedback: You guys really need to make it so remove-package doesn't auto-exit if it can't find a package name when you've provided a bunch of them.
12:04:16 PM < Lord-Kamina> For whatever reason, it won't find all package names shown in the web interface (don't know if that's a bug on the web interface or on package-remove) and when it doesn't find any package, it quits without checking the rest. So it ends up being a sysiphean task, running the script fifty times while removing one or two packages from the command each time. :P
Not that we always take feedback from IRC or anything...
This doesn't achieve the requested result. The exception handler here is outside the loop, so it will skip everything from the point of the failure and then carry on.
I think you need an extra exception handler in find_all_removables instead.