summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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
}
}