summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-25 19:51:16 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-25 19:51:16 +0200
commitfb742a05a3e024d19b90cebec754f8fe428c2410 (patch)
tree7161471e3044fde251262a3f38848a45bc7ee73e /bin
parentf568928fb3ee3c45afd55a02d2095e88d7785ad3 (diff)
fixed changeroot
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
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
}
}