Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2013 15:37:57 +0200
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: removing file doing uninstall
Message-ID:  <517BD4B5.5090905@gmx.de>
In-Reply-To: <BLU0-SMTP1373A5AE45C4BE69C06D6A393B00@phx.gbl>
References:  <BLU0-SMTP1373A5AE45C4BE69C06D6A393B00@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-04-27 15:11, Carmel wrote:
> How do I remove a file from an older release that is no longer in the
> newer release.
> 
> Assume:
> 
> "Release.html" is in the older port version. In the newer port version,
> it has been replaced by "Release.pdf".
> 
> I tried placing this in the "pkg-plist"file.
> 
> @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi
> 
> However, while "portlint -A" has no problem with it, I receive:
> 
> share/doc/scamp/Release.html: not found
> pkg_delete: unable to completely remove directory
> 
> when running "make deinstall"
> 
> @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f %%PORTDOCS%%%%DOCSDIR%%/Release.html; fi

The old port will cleanup the file during deinstall,
you don't have to handle this file removal in the new version



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