diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-11-08 17:55:14 +0100 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-11-12 11:08:48 +0100 |
commit | b1350d922cb12d7b6aed1bf8290417212ca749fe (patch) | |
tree | 807ba3db741efb5b8b2808727c75b088908d098c /Keywords | |
parent | d233f442d55000467891710e6920250044320d5b (diff) | |
download | freebsd-ports-b1350d922cb12d7b6aed1bf8290417212ca749fe.zip |
@sample.ucl: only recommand to remove the file on remove
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/sample.ucl | 4 |
1 files changed, 3 insertions, 1 deletions
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 |