From fb742a05a3e024d19b90cebec754f8fe428c2410 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 25 May 2008 19:51:16 +0200 Subject: fixed changeroot --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 3d8a052..6e63d24 100755 --- a/bin/pkg +++ b/bin/pkg @@ -116,7 +116,7 @@ pkg_changesrc () { cd $PDIR for i in *(/); { if [ -f $i/.hg/hgrc ]; then - sed -ri "s!(default = )[^:]*://[^/]*/!\1$1/!" $i/.hg/hgrc + sed -ri "s!(default = )[^:]*://.*/([^/]*)$/!\1$1\2/!" $i/.hg/hgrc fi } } -- cgit v1.2.3