summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-07 12:15:58 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-07 12:15:58 +0200
commitf8da77d2edb9b8a52913fb29af426445f2fb369b (patch)
treefa711c6401a06ef191940ebbbd88250c5c9091b4 /bin
parent2fc9d0c03c6bf3424928141c9c9819e444c9f756 (diff)
bin/pkg: Don't assume a package has the correct origin
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 23aa855..12e0bed 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -175,13 +175,13 @@ vcs_log () {
}
vcs_upgrade () {
- [[ -d .hg ]] && {hg pull --update ; return}
- [[ -d .git ]] && {git pull ; return}
+ [[ -d .hg ]] && {hg pull --update $PKG_ROOT/$PWD:t; return}
+ [[ -d .git ]] && {git pull $PKG_ROOT/$PWD:t ; return}
}
vcs_push () {
- [[ -d .hg ]] && {hg push ; return}
- [[ -d .git ]] && {git push ; return}
+ [[ -d .hg ]] && {hg push $PKG_ROOT/$PWD:t ; return}
+ [[ -d .git ]] && {git push $PKG_ROOT/$PWD:t; return}
}
vcs_status () {