diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-29 13:14:29 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-29 13:14:29 +0100 |
commit | 05df4e2f7615a2d98de925aae864e108d39cd07a (patch) | |
tree | 3ec24228c5aaf14278eb38236dfb16c51e947234 | |
parent | 223c5b3b837edb9399bcbcc08c34976dc8986cdb (diff) |
pkg: Renamed fix_origin to vcs_fix_origin
-rwxr-xr-x | bin/pkg | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -248,18 +248,28 @@ function vcs_upgrade { return 1 } git pull $PKG_ROOT/${PWD:t} $branch - fix_origin + vcs_fix_origin } function vcs_push { git push $PKG_ROOT/${PWD:t} master - fix_origin + vcs_fix_origin } function vcs_status { git status } +# Set the correct origin +function vcs_fix_origin { + cd $PDIR/$1 + if ! git remote | grep -F origin &> /dev/null; then + git remote add origin $PKG_ROOT/$1 + fi + git remote update &> /dev/null +} + + ## List stuff function list_is_installed { @@ -382,15 +392,6 @@ function global_hook { (( $+functions[pkg_hook_$2] )) && pkg_hook_$2 $1 } -# Set the correct origin -function fix_origin { - cd $PDIR/$1 - if ! git remote | grep -F origin &> /dev/null; then - git remote add origin $PKG_ROOT/$1 - fi - git remote update &> /dev/null -} - # Check dependencies, conflicts etc. function check_prereqs { package=$1 |