From acc909dea1dc97b0156fc2f294ac207394015d38 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Oct 2008 22:38:23 +0200 Subject: removed pkg changeroot, it's no longer needed --- bin/pkg | 11 ----------- man/1/pkg | 7 ------- provides/zsh/completions/_pkg | 4 ++-- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/bin/pkg b/bin/pkg index 5199751..c8550a4 100755 --- a/bin/pkg +++ b/bin/pkg @@ -490,16 +490,6 @@ pkg_upgrade () { } } -# Change the 'default' url in every package's .hgrc -pkg_changesrc () { - cd $PDIR - for i in *(/); { - if [[ -f $i/.hg/hgrc ]] { - sed -i "s!default = [^:]*://.*\$!default = $1/$i!" $i/.hg/hgrc - } - } -} - pkg_list_installed () { cut -d ' ' -f 1 $PDIR/.list } @@ -623,7 +613,6 @@ pkg_doc () { case $1 in add) pkg_add $2 ;; changelog) pkg_changelog $2 ;; - changeroot) pkg_changesrc $2 ;; check) wrap pkg_check "$2" "Checking" ;; delete) pkg_remove $2 ;; doc) pkg_doc $2 ;; diff --git a/man/1/pkg b/man/1/pkg index b5fba9f..376d747 100644 --- a/man/1/pkg +++ b/man/1/pkg @@ -24,13 +24,6 @@ fetch given I from the package_root and install it Show I's changelog (if available) -=item B I - -Change the default source on all packages to I - -Example: `changeroot ssh://kraftwerk/var/packages_root` will change -the source of core to 'ssh://kraftwerk/var/packages_root/core' - =item B [ I ] Check dependencies, conflicts and symlinks of I. diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index 0bd1b27..78bacc3 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -9,8 +9,8 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ - compadd add install changelog changeroot check delete eval remove info \ - list list-all local-update log push remote-update status update upgrade + compadd add install changelog check delete eval remove info list \ + list-all local-update log push remote-update status update upgrade } function _pkg_installed () { -- cgit v1.2.3