From 54b4b1d11ac5e893715d2ed509ee251dfc46a598 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Thu, 5 May 2022 08:14:42 -0500 Subject: installpkg: support no-overwrite option --- cmd/installpkg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/installpkg/main.go b/cmd/installpkg/main.go index a1561e1..5cc4955 100644 --- a/cmd/installpkg/main.go +++ b/cmd/installpkg/main.go @@ -49,7 +49,7 @@ func ParseFlags() *pkgtools.InstallPkgFlags { flags.SetEnvValues() getopt.FlagLong(&flags.Root, "root", 0, "/mnt (install someplace else, like /mnt)") - //getopt.FlagLong(&flags.NoOverwrite, "no-overwrite", 0, "When extracting the package, do not overwrite existing files. Usually, this option should not be used. It exists so that upgradepkg can use it for the second installation pass. The first pass has already overwritten the previous package's files, and this will catch the few corner cases without generating unnecessary writes.") + getopt.FlagLong(&flags.NoOverwrite, "no-overwrite", 0, "When extracting the package, do not overwrite existing files. Usually, this option should not be used. It exists so that upgradepkg can use it for the second installation pass. The first pass has already overwritten the previous package's files, and this will catch the few corner cases without generating unnecessary writes.") getopt.Parse() return &flags -- cgit v1.2.3