Merge lp:~barry/ubuntu-archive-tools/exit-status into lp:ubuntu-archive-tools
Proposed by
Barry Warsaw
on 2015-08-07
| Status: | Merged |
|---|---|
| Merged at revision: | 969 |
| Proposed branch: | lp:~barry/ubuntu-archive-tools/exit-status |
| Merge into: | lp:ubuntu-archive-tools |
| Diff against target: |
34 lines (+16/-1) 1 file modified
copy-package (+16/-1) |
| To merge this branch: | bzr merge lp:~barry/ubuntu-archive-tools/exit-status |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Adam Conrad | 2015-08-07 | Approve on 2015-08-07 | |
|
Review via email:
|
|||
Description of the Change
When the source can't be found, print the exception and continue unless the new option --fail-immediately is given, in which case False is returned to force a non-zero exit status.
To post a comment you must log in.
lp:~barry/ubuntu-archive-tools/exit-status
updated
on 2015-08-07
- 970. By Barry Warsaw on 2015-08-07
-
Improve the error handling, and restore the sense that if the package is
missing, exit with status 1. Change --fail-immediately to --skip-missing
which ignores any missing packages and exits with status 0. - 971. By Barry Warsaw on 2015-08-07
-
Always print the error.

LGTM:
(base)adconrad@ nosferatu: ~/build/ ubuntu- archive- tools$ copy-package --from= ppa:adconrad/ ubuntu/ ppa --to=ppa: adconrad/ ubuntu/ ppa -s trusty gerbafl nosferatu: ~/build/ ubuntu- archive- tools$ echo $? nosferatu: ~/build/ ubuntu- archive- tools$ copy-package --from= ppa:adconrad/ ubuntu/ ppa --to=ppa: adconrad/ ubuntu/ ppa --skip-missing -s trusty gerbafl nosferatu: ~/build/ ubuntu- archive- tools$ echo $?
Copy candidates:
Could not find source 'gerbafl/None' in trusty
(base)adconrad@
1
(base)adconrad@
Copy candidates:
Could not find source 'gerbafl/None' in trusty
Skipping
(base)adconrad@
0