mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
@sample.ucl: only recommand to remove the file on remove
This commit is contained in:
parent
d233f442d5
commit
b1350d922c
1 changed files with 3 additions and 1 deletions
|
@ -64,6 +64,8 @@ pre-deinstall-lua: <<EOS
|
||||||
if pkg.filecmp(sample_file, target_file) == 0 then
|
if pkg.filecmp(sample_file, target_file) == 0 then
|
||||||
os.remove(target_file)
|
os.remove(target_file)
|
||||||
else
|
else
|
||||||
|
if not pkg.pkg_upgrade then
|
||||||
pkg.print_msg("You may need to manually remove " .. target_file .. " if it is no longer needed.")
|
pkg.print_msg("You may need to manually remove " .. target_file .. " if it is no longer needed.")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
EOS
|
EOS
|
||||||
|
|
Loading…
Add table
Reference in a new issue