]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: print assumed value
authorBurak Gerz <burak@gerz.io>
Fri, 29 Mar 2024 23:41:51 +0000 (00:41 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 31 Mar 2024 22:41:08 +0000 (23:41 +0100)
The MatchPattern= in Target specification is documented as mandatory,
but if not defined sysupdate will assume the same value as definied
in Source specification and continue execution. Print this
assumptions to the user

src/sysupdate/sysupdate-transfer.c

index b350f83065e2347d78154c56e81037fa32a8beaa..ab4eab6780f67a8a8c6c63811cf9882e251198c6 100644 (file)
@@ -532,6 +532,7 @@ int transfer_read_definition(Transfer *t, const char *path) {
                                   "Target path is not a normalized, absolute path: %s", t->target.path);
 
         if (strv_isempty(t->target.patterns)) {
+                log_info("Target specifications lacks MatchPattern=. Assuming same value as in Source specification");
                 strv_free(t->target.patterns);
                 t->target.patterns = strv_copy(t->source.patterns);
                 if (!t->target.patterns)