git: b1350d922cb1 - main - @sample.ucl: only recommand to remove the file on remove
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Nov 2021 10:08:58 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=b1350d922cb12d7b6aed1bf8290417212ca749fe commit b1350d922cb12d7b6aed1bf8290417212ca749fe Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2021-11-08 16:55:14 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2021-11-12 10:08:48 +0000 @sample.ucl: only recommand to remove the file on remove --- Keywords/sample.ucl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Keywords/sample.ucl b/Keywords/sample.ucl index 61918f1c8406..15437a472da4 100644 --- a/Keywords/sample.ucl +++ b/Keywords/sample.ucl @@ -64,6 +64,8 @@ pre-deinstall-lua: <<EOS if pkg.filecmp(sample_file, target_file) == 0 then os.remove(target_file) else - pkg.print_msg("You may need to manually remove " .. target_file .. " if it is no longer needed.") + if not pkg.pkg_upgrade then + pkg.print_msg("You may need to manually remove " .. target_file .. " if it is no longer needed.") + end end EOS