Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2021 10:08:58 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b1350d922cb1 - main - @sample.ucl: only recommand to remove the file on remove
Message-ID:  <202111121008.1ACA8w38021848@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111121008.1ACA8w38021848>