subversion dports syncing

Ryan Schmidt ryandesign at macports.org
Tue Nov 6 18:16:00 PST 2007


On Nov 5, 2007, at 02:25, Jochen Küpper wrote:

> Hey, I thought, so I don't need to port trees on my system (I have  
> a subversion-tree for Portfile maintenance anyway)... I edit /opt/ 
> local/etc/macports/sources.conf and that's what I get:
>
> > port -dv sync
> DEBUG: Synchronizing ports tree(s)
> Synchronizing from file:///Users/jochen/source/macports/dports
> DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ 
> source/macports/dports
> DEBUG: changing euid/egid - current euid: 957 - current egid: 700
> DEBUG: could not set effective gid to -1
>     while executing
> "setegid [name_to_gid [file attributes $portdir -group]]"
> DEBUG: sync failed doing svn update
>     while executing
> "mportsync"
> port sync failed: sync failed doing svn update
>
>
> > sudo port -dv sync
> DEBUG: Synchronizing ports tree(s)
> Synchronizing from file:///Users/jochen/source/macports/dports
> DEBUG: /opt/local/bin/svn update --non-interactive /Users/jochen/ 
> source/macports/dports
> DEBUG: changing euid/egid - current euid: 0 - current egid: 0
> svn: Kann Datei ?\194?\187/Users/jochen/.subversion/servers?\194? 
> \171 nicht ?\195?\182ffnen: Permission denied
> DEBUG: shell command "/opt/local/bin/svn update --non-interactive / 
> Users/jochen/source/macports/dports" returned error 1
> Command output: svn: Kann Datei ?\194?\187/Users/jochen/.subversion/ 
> servers?\194?\171 nicht ?\195?\182ffnen: Permission denied
>
>     while executing
> "system $svn_commandline"
> DEBUG: sync failed doing svn update
>     while executing
> "mportsync"
> port sync failed: sync failed doing svn update
>
>
> I know how to update that dports tree manually, but it would be  
> nice to have port sync working that way;)

Hmm... I've been using a Subversion working copy for my dports tree  
for a long time, but I forgot that I had also installed this function  
in my ~/.bashrc:


port() {
	case "$1" in
		sync)
			PORTS_DIR=/Users/rschmidt/macports/dports
			svn revert $PORTS_DIR/PortIndex | sed s%$PORTS_DIR/%%
			svn up $PORTS_DIR | sed s%$PORTS_DIR/%%
			;;
	esac
}


My dports tree is owned by me, and I can just "port sync" (without  
sudo) and it updates.



More information about the macports-users mailing list