Error deleting com.apple.dt.Xcode.plist

Mojca Miklavec mojca at macports.org
Thu Jun 22 07:56:50 UTC 2017


Hi,

With respect to:
    https://travis-ci.org/macports/macports-ports/jobs/245649003

I would imagine that "delete -force" would not error out if the file is missing.

This code was added by Joshua:
    https://github.com/macports/macports-base/commit/485900103

So perhaps he has more insight. If it's causing an error, that line
could be moved inside some "if that file exists".

error deleting "/opt/local/var/macports/home/Library/Preferences/com.apple.dt.Xcode.plist":
no such file or directory
    while executing
"file delete -force "${target_dir}/com.apple.dt.Xcode.plist""
    (procedure "macports::copy_xcode_plist" line 5)
    invoked from within
"macports::copy_xcode_plist $env(HOME)"
    (procedure "mportinit" line 540)
    invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, error
deleting "/opt/local/var/macports/home/Library/Preferences/com.apple.dt.Xcode.plist":
no such file or directory

Mojca


More information about the macports-dev mailing list