Skip to content

Commit af032d4

Browse files
committed
feat(install): add --debug flag, improve error handling and i18n debug messages; refactor to let-else; update tests
1 parent 2a314c7 commit af032d4

File tree

3 files changed

+206
-36
lines changed

3 files changed

+206
-36
lines changed

src/uu/install/locales/en-US.ftl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ install-help-verbose = explain what is being done
1919
install-help-preserve-context = preserve security context
2020
install-help-context = set security context of files and directories
2121
install-help-default-context = set SELinux security context of destination file and each created directory to default type
22+
install-help-debug = display detailed debug messages about the installation process
2223
2324
# Error messages
2425
install-error-dir-needs-arg = { $util_name } with -d requires at least one argument.
@@ -58,3 +59,20 @@ install-verbose-creating-directory-step = install: creating directory { $path }
5859
install-verbose-removed = removed { $path }
5960
install-verbose-copy = { $from } -> { $to }
6061
install-verbose-backup = (backup: { $backup })
62+
63+
# Debug messages
64+
install-debug-will-copy = will copy { $from } to { $to }
65+
install-debug-backing-up = backing up { $to } to { $backup }
66+
install-debug-copying = copying { $from } to { $to }
67+
install-debug-stripping = stripping { $to }
68+
install-debug-changing-mode = changing mode of { $to } to { $mode }
69+
install-debug-preserving-timestamps = preserving timestamps of { $from } to { $to }
70+
install-debug-preserving-context = preserving security context of { $to }
71+
install-debug-setting-context = setting security context of { $to }
72+
install-debug-checking-copy = checking if { $from } needs to be copied to { $to }
73+
install-debug-reason-source-missing = source file does not exist
74+
install-debug-reason-dest-missing = destination file does not exist
75+
install-debug-reason-different-content = contents differ
76+
install-debug-reason-different-owner = owner differs
77+
install-debug-reason-different-group = group differs
78+
install-debug-reason-different-mode = mode differs

0 commit comments

Comments
 (0)