#!/hint/bash # Within this file (and in most of dbscripts, really): # - "pkgarch" refers to the package architecture; may be "any" # - "tarch" refers to the repo architecture; may NOT be "any" # usage: vcs_move_preflight_check repo_from pkgarch pkgbase # # Verify that $pkgbase exists in $repo_from in VCS, such that we can # move it to a different repo. vcs_move_preflight_check() { local repo_from=$1 local tarch=$2 local pkgbase=$3 : } # usage: vcs_move_start repo_from repo_to pkgbase # # Begin a VCS transaction moving $pkgbase from $repo_from to $repo_to. # This should be followed by a call to vcs_move_arch for each # architecture we're movin it for, and finally by a call to # vcs_move_finish. vcs_move_start() { local repo_from=$1 local repo_to=$2 local pkgbase=$3 : } # usage: vcs_move_arch tarch # # Add an architecture to a VCS transaction started by vcs_move_start. vcs_move_arch() { local tarch=$1 : } # usage: vcs_move_finish # # Commit/finalize a VCS transaction started by vcs_move_start. vcs_move_finish() { : } # usage: vcs_remove repo tarch pkgbase # # Remove the given package in VCS. vcs_remove() { local repo=$1 local tarch=$2 local pkgbase=$3 : } # usage: vcs_export repo pkgarch pkgbase dest # # Export the VCS files for a package to the given $dest directory. #vcs_export() { # local repo=$1 # local pkgarch=$2 # local pkgbase=$3 # local dest=$4 # # : #}