unminimize ignores errors on disco (translations)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned |
Bug Description
When running unminimize on the current ubuntu:19.04 disco image, it errors prior to completion.
Truncated log:
$ docker run --rm -ti ubuntu:19.04
root@ebf555f094
Get:1 http://
.....
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ebf555f094
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
.....
Would you like to continue? [y/N] y
Re-enabling installation of all documentation in dpkg...
Updating package list and upgrading packages...
.....no errors, lots of packages.....
Restoring system translations...
dpkg-query: error: --search needs at least one file name pattern argument
Use --help for help about querying packages.
If it is being called from a script with pipefail, this error will cause an exit. In general it should capture expected errors and abort on unexpected, but it appears to be ignoring all errors.