]> pd.if.org Git - zpackage/commitdiff
add link target to dry run output
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 4 Nov 2018 21:39:40 +0000 (21:39 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 4 Nov 2018 21:39:40 +0000 (21:39 +0000)
zpm-syncfs.c

index 7422ece7a505cb59cff5afddc0ca154057d86880..06477f172563c84b4b9ec0f24d357481178e352f 100644 (file)
@@ -676,9 +676,13 @@ static int install(struct config *conf, struct nitem *item, unsigned int flags)
                        printf("rmdir %s\n", item->dest);
                }
 
-               printf("install %c%o %d:%d %s\n", item->ftype,
+               printf("install %c%o %d:%d %s", item->ftype,
                                item->mode, item->uid, item->gid,
                                item->dest);
+               if (item->ftype == 'l') {
+                       printf(" -> %s", item->target);
+               }
+               printf("\n");
                fflush(stdout);
                return success;
        }