How identify and remove leftover files on buildbots?
Daniel J. Luke
dluke at geeklair.net
Mon Nov 3 09:58:16 PST 2014
> On Nov 3, 2014, at 11:56 AM, Thomas Friedrichsmeier <thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
> yes. Only it is what happened in the past. And now the files in question
> are destrooted, and thus part of the image (as can also be seen in the
> buildbot's log). And that's why port refuses to activate the image: Some files
> contained in it are already present at the target location (unregistered).
>
> The question at hand is how to get rid of the files that have been installed
> without being registered _previously_.
the subversion-javahlbindings port used to create a symlink directly in $prefix (by mistake), so it does this now:
pre-activate {
#- this port used to create a symlink directly in ${prefix} which was fixed in 1.8.1_1
#- we need to remove this symlink from ${prefix} though, so upgrades work
#- this can eventually be removed, origionally added 2013-07-25
set badfile ${prefix}/lib/libsvnjavahl-1.jnilib
if {[file exists ${badfile}] && [registry_file_registered ${badfile}] == "0"} {
if {[catch {delete ${badfile}}]} {
ui_warn "Cannot delete ${badfile}; please remove it manually"
}
}
}
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-dev
mailing list