]> pd.if.org Git - zpackage/commitdiff
add note when installing as .zpmnew
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 20 Oct 2018 12:24:20 +0000 (12:24 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:52 +0000 (12:39 +0000)
zpm-syncfs.c

index 218c53812ae22756019f5dfe251ddb3ab438a093..94297a044a02e0bec4855a0268d2542897b6fb6d 100644 (file)
@@ -787,6 +787,10 @@ static int install_files(void *f, int ncols, char **vals, char **cols) {
                         * we'll need to look it up.
                         */
                        if (diffs & D_OHASH) {
+                               zpm_note_add(conf->log, nitem.pkglist,
+                                               nitem.path, nitem.hash,
+                                               "default config file update installed as %s.zpmnew", nitem.dest);
+
                                if (strlen(nitem.dest) > sizeof dest - 8) {
                                        return seterror(conf,"config file path too long for install as %s.zpmnew", nitem.dest);
                                }