summaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-11-08 17:55:14 +0100
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-11-12 11:08:48 +0100
commitb1350d922cb12d7b6aed1bf8290417212ca749fe (patch)
tree807ba3db741efb5b8b2808727c75b088908d098c /Keywords
parentlang/gcc12-devel: Update to the 20211107 snapshot of GCC 12.0.0 (diff)
@sample.ucl: only recommand to remove the file on remove
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/sample.ucl4
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