[MacPorts] #48439: port selfupdate - privileges error message
MacPorts
noreply at macports.org
Sat Jul 25 15:43:25 PDT 2015
#48439: port selfupdate - privileges error message
------------------------------------+--------------------------------
Reporter: grunermonzon@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Low | Milestone:
Component: base | Version: 2.3.3
Keywords: selfupate, permissions | Port:
------------------------------------+--------------------------------
When trying to run selfupdate without the appropriate privileges, a
cryptic message prints out:
{{{
---> Updating MacPorts base sources using rsync
receiving file list ... done
rsync: mkstemp
"/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/.base.tar.d146Xp"
failed: Permission denied (13)
inflate returned -3 (19 bytes)
rsync error: error in rsync protocol data stream (code 12) at
/SourceCache/rsync/rsync-45/rsync/token.c(419) [receiver=2.6.9]
rsync: connection unexpectedly closed (31 bytes received so far)
[generator]
rsync error: error in rsync protocol data stream (code 12) at
/SourceCache/rsync/rsync-45/rsync/io.c(453) [generator=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after
rsync://rsync.macports.org/release/tarballs/base.tar
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 12
Error: Error synchronizing MacPorts sources: command execution failed
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing
MacPorts sources: command execution failed
}}}
Other commands, such as install, perform a safe check before and print out
a nice message
{{{
Error: Insufficient privileges to write to MacPorts install prefix.
}}}
I thought it would be a nice enhancement to check for the appropriate
privileges when running self update, such as install does.
--
Ticket URL: <https://trac.macports.org/ticket/48439>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list